Modifier and Type | Method and Description |
---|---|
void |
CDFWriter.addCDF(GenericReader cdf)
Adds previously selected variables, and variables they depend on, from
the given
GenericReader .. |
void |
CDFWriter.addCDF(java.lang.String fname)
Adds previously selected variables, and variables they depend on, from
the given file.
|
void |
CDFWriter.addCDF(java.net.URL url)
Adds previously selected variables, and variables they depend on, from
the given URL.
|
double[] |
GenericReader.asDouble0(java.lang.String varName)
Returns all available values for the given scalar variable.
|
double[][] |
GenericReader.asDouble1(java.lang.String varName)
Returns all available values for the given variable of rank 1.
|
double[][][] |
GenericReader.asDouble2(java.lang.String varName)
Returns all available values for the given variable of rank 2.
|
double[][][][] |
GenericReader.asDouble3(java.lang.String varName)
Returns all available values for the given variable of rank 3.
|
int[] |
CDFReader.firstAvailableTime(java.lang.String varName)
Returns first available time for a variable.Returned time has millisecond precision.
|
int[] |
CDFReader.firstAvailableTime(java.lang.String varName,
int[] start)
Returns first available time which is not before the given time for a
variable.Returned time has millisecond precision.
|
java.lang.Object |
GenericReader.get(java.lang.String varName)
Returns all available values for the given variable.
|
java.lang.Object |
MetaData.getAttribute(java.lang.String varName,
java.lang.String aname)
Returns value of the named attribute for specified variable.For a character string attribute, a Vector of String is returned.For a numeric attribute, a Vector of size 1 is returned.The
single element of the Vector is a long[] if attribute's type is long;
For all other numeric types, the element is a double[].
|
java.util.Vector<AttributeEntry> |
MetaData.getAttributeEntries(java.lang.String aname)
Returns list of
AttributeEntry objects for the
named global attribute. |
java.util.Vector<AttributeEntry> |
MetaData.getAttributeEntries(java.lang.String varName,
java.lang.String aname)
Returns list of
AttributeEntry objects for
the named attribute for the named variable. |
double[] |
CDFReader.getAvailableTimeRange(java.lang.String varName)
Returns available time range using default
time instant model . |
int |
MetaData.getBlockingFactor(java.lang.String varName)
Returns the blocking factor used to compress this variable.See the CDF User's Guide for details.
|
java.nio.ByteBuffer |
GenericReader.getBuffer(java.lang.String varName,
java.lang.String targetType,
int[] recordRange,
boolean preserve)
Returns specified data as ByteBuffer of specified type.Order of the ByteBuffer is 'native'.Data is organized according to
storage model of the variable returned by rowMajority().
|
java.nio.ByteBuffer |
GenericReader.getBuffer(java.lang.String varName,
java.lang.String targetType,
int[] recordRange,
boolean preserve,
boolean useDirect)
Returns specified data as ByteBuffer of specified type.Order of the ByteBuffer is 'native'.Data is organized according to
storage model of the variable returned by rowMajority().
|
java.nio.ByteBuffer |
GenericReader.getBuffer(java.lang.String varName,
java.lang.String targetType,
int[] recordRange,
boolean preserve,
java.nio.ByteBuffer buffer) |
int |
GenericReader.getBufferCapacity(java.lang.String varName,
java.lang.String targetType,
int[] recordRange) |
int |
MetaData.getDataItemSize(java.lang.String varName)
Returns size of a data item for the given variable.
|
int[] |
MetaData.getDimensions(java.lang.String varName)
Returns dimensions the given variable.
|
int[] |
MetaData.getEffectiveDimensions(java.lang.String varName)
Returns effective dimensions of the given variable.Dimensions for which dimVarys is false are ignored.
|
int |
MetaData.getEffectiveRank(java.lang.String varName)
Returns effective rank of this variable.Dimensions for which dimVarys is false do not count.
|
java.util.Vector<java.lang.Integer> |
MetaData.getElementCount(java.lang.String varName)
Return element count for this variable's dimensions.
|
GlobalAttribute |
MetaData.getGlobalAttribute(java.lang.String atr)
Returns
GlobalAttribute object for
the named global attribute. |
java.lang.String |
CDFReader.getIndexName(java.lang.String varName,
int index)
Returns the name of the specified index of a multi-dimensional
variable
|
java.lang.Object |
GenericReader.getLong(java.lang.String varName)
Returns all available values for the given long type variable.
|
int |
MetaData.getNumber(java.lang.String varName)
Returns given variable's number property.
|
int |
MetaData.getNumberOfElements(java.lang.String varName)
Returns given variable's 'number of elements' property.
|
int |
MetaData.getNumberOfValues(java.lang.String varName)
Returns 'number of values' property of the given variable.
|
double[] |
GenericReader.getOneD(java.lang.String varName,
boolean columnMajor)
Returns one dimensional representation of the values of a numeric
variable whose type is not INT8 or TT2000.
|
java.lang.Object |
GenericReader.getOneDArray(java.lang.String threadName,
boolean columnMajor)
Returns data extracted by the named thread as a one dimensional
array, organized according to specified row majority..
|
java.lang.Object |
GenericReader.getOneDArray(java.lang.String varName,
java.lang.String targetType,
int[] recordRange,
boolean preserve,
boolean columnMajor)
Returns specified data as a one dimensional
array, organized according to specified row majority..
|
java.lang.Object |
MetaData.getPadValue(java.lang.String varName)
Returns 'pad value' property of the given variable.
|
java.lang.Object |
MetaData.getPadValue(java.lang.String varName,
boolean preservePrecision)
Returns 'pad value' property of the given variable subject to the given
precision preservation constraint.
|
java.lang.Object |
GenericReader.getRange(java.lang.String varName,
int first,
int last)
Returns values for a range of records for the given numeric variable
of rank <= 2.
|
double[] |
GenericReader.getRangeForComponent(java.lang.String varName,
int first,
int last,
int component)
Returns values, in the specified record range, of the specified
component of 1 dimensional * variable of numeric types other than
INT8 or TT2000.
|
double[][] |
GenericReader.getRangeForComponents(java.lang.String varName,
int first,
int last,
int[] components)
Returns values, in the specified record range, of specified
components of 1 dimensional variable of numeric types other than
INT8 or TT2000.
|
double[] |
GenericReader.getRangeOneD(java.lang.String varName,
int first,
int last,
boolean columnMajor)
Returns one dimensional representation of the values
for a range of records of a numeric
variable whose type is not INT8 or TT2000.
|
static CDFReader |
ReaderFactory.getReader(java.lang.String fname) |
static CDFReader |
ReaderFactory.getReader(java.lang.String fname,
boolean map) |
static CDFReader |
ReaderFactory.getReader(java.net.URL url)
creates CDFReader object from a URL using array backed ByteBuffer.
|
int[] |
MetaData.getRecordRange(java.lang.String varName)
Returns record range for this variable
|
java.lang.Object |
GenericReader.getSampled(java.lang.String varName,
int[] range,
int stride,
java.lang.String type,
boolean preserve,
boolean columnMajor)
Returns sampled values of a numeric variable as one dimensional
array of specified type and storage model.
|
java.lang.Object |
GenericReader.getSampled(java.lang.String varName,
int first,
int last,
int stride,
java.lang.String type,
boolean preserve)
Returns sampled values of a numeric variable as one dimensional
array of specified type.Data for records is organized according to the storage model of the
variable (as returned by rowMajority()).
|
double[][] |
CDFReader.getScalarTimeSeries(java.lang.String varName)
Returns the time series of the specified scalar variable, ignoring
points whose value equals fill value.
|
double[][] |
CDFReader.getScalarTimeSeries(java.lang.String varName,
boolean ignoreFill)
Returns the time series of the specified scalar variable, optionally
ignoring points whose value equals fill value.
|
double[][] |
CDFReader.getScalarTimeSeries(java.lang.String varName,
boolean ignoreFill,
int[] startTime,
int[] stopTime)
Returns the time series of the specified scalar variable in the
specified time range, optionally ignoring points whose value equals
fill value.
|
TimeSeries |
CDFReader.getScalarTimeSeries(java.lang.String varName,
boolean ignoreFill,
int[] startTime,
int[] stopTime,
TimeInstantModel tspec)
Returns the time series as a
TimeSeries of the
specified scalar variable in the specified time range using the given
time instant model , optionally ignoring points
whose
value equals fill value. |
double[][] |
CDFReader.getScalarTimeSeries(java.lang.String varName,
int[] startTime,
int[] stopTime)
Returns the time series of the specified scalar variable in the
specified time range, ignoring points whose value equals
fill value.
|
TimeSeries |
CDFReader.getScalarTimeSeries(java.lang.String varName,
int[] startTime,
int[] stopTime,
TimeInstantModel tspec)
Returns the time series as a
TimeSeries , of the
specified scalar variable in the specified time range, using the given
time instant model , ignoring points whose
value equals fill value. |
double[] |
TSExtractor.GeneralTimeSeriesX.getTimes() |
double[] |
TimeSeries.getTimes()
Returns times according to the
time instant model
returned by getTimeInstantModel() . |
double[] |
TimeSeriesOneD.getTimes()
Returns times according to the
time instant model
returned by getTimeInstantModel() . |
TimeSeries |
CDFReader.getTimeSeries(java.lang.String varName)
Returns
TimeSeries of the specified variable
using the default time instant model . |
TimeSeries |
CDFReader.getTimeSeries(java.lang.String varName,
int[] startTime,
int[] stopTime)
Returns
TimeSeries of the specified variable
in the specified time range using the default
time instant model . |
TimeSeries |
CDFReader.getTimeSeries(java.lang.String varName,
int[] startTime,
int[] stopTime,
TimeInstantModel tspec)
Returns
TimeSeries of the specified variable in
the specified time range using the given
time instant model . |
TimeSeries |
CDFReader.getTimeSeries(java.lang.String varName,
TimeInstantModel tspec)
Returns
TimeSeries of the specified variable
using the specified time instant model . |
TimeSeriesOneD |
CDFReader.getTimeSeriesOneD(java.lang.String varName,
int[] startTime,
int[] stopTime,
TimeInstantModel tspec,
boolean columnMajor)
Returns
time series of the specified variable
in the specified time range using the given
time instant model . |
int |
MetaData.getType(java.lang.String varName)
Returns CDF type of the variable.
|
java.lang.Object |
TSExtractor.GeneralTimeSeriesX.getValues() |
java.lang.Object |
TimeSeries.getValues()
Returns values of the variable at times returned by getTimes().
|
double[] |
TimeSeriesOneD.getValues()
Returns one dimensional representation of the values of the variable
at times returned by getTimes().
|
boolean[] |
MetaData.getVarys(java.lang.String varName)
Returns 'varys' property of the given variable.
|
double[] |
GenericReader.getVectorComponent(java.lang.String varName,
int component)
Returns values of the specified component of 1 dimensional
variable of numeric types other than INT8 or TT2000.
|
double[][] |
CDFReader.getVectorTimeSeries(java.lang.String varName,
int component)
Returns the time series of the specified component of a 1 dimensional
variable, ignoring points whose value equals fill value.
|
double[][] |
CDFReader.getVectorTimeSeries(java.lang.String varName,
int component,
boolean ignoreFill)
Returns the time series of the specified component of a 1 dimensional
variable, optionally ignoring points whose value equals fill value.
|
double[][] |
CDFReader.getVectorTimeSeries(java.lang.String varName,
int component,
boolean ignoreFill,
int[] startTime,
int[] stopTime)
Returns the time series of the specified component of 1 dimensional
variable in the specified time range, optionally ignoring points whose
value equals fill value.
|
TimeSeries |
CDFReader.getVectorTimeSeries(java.lang.String varName,
int component,
boolean ignoreFill,
int[] startTime,
int[] stopTime,
TimeInstantModel tspec)
Returns the
time series of the specified component
of 1 dimensional variable in the specified time range using the given
time instant model , optionally ignoring points
whose
value
equals fill value. |
double[][] |
CDFReader.getVectorTimeSeries(java.lang.String varName,
int component,
int[] startTime,
int[] stopTime)
Returns the time series of the specified component of 1 dimensional
variable in the specified time range, ignoring points whose
value equals fill value.
|
TimeSeries |
CDFReader.getVectorTimeSeries(java.lang.String varName,
int component,
int[] startTime,
int[] stopTime,
TimeInstantModel tspec)
Returns the time series as a
TimeSeries , of the
specified component of a vector variable in the specified time range
using the given time instant model , ignoring
points
whose value
equals fill value. |
int |
MetaData.globalAttributeEntryCount(java.lang.String atr)
Returns number of entries for the named global attribute.
|
boolean |
MetaData.isCompatible(java.lang.String varName,
java.lang.Class cl)
returns whether conversion of this variable to type specified by
cl is supported while preserving precision.
|
boolean |
MetaData.isCompatible(java.lang.String varName,
java.lang.Class cl,
boolean preserve)
Returns whether conversion of this variable to type specified by
cl is supported under the given precision preserving constraint.
|
boolean |
MetaData.isCompressed(java.lang.String varName)
Returns whether the values of the variable are represented in a
compressed form in the CDF.For variables declared to be compressed, CDF specification allows
the values to be stored in uncompressed form if the latter results in
a smaller size.
|
boolean |
MetaData.isMissingRecords(java.lang.String varName)
Shows whether one or more records (in the range returned by
getRecordRange()) are missing.
|
boolean |
GenericReader.isScalar(java.lang.String varName)
Returns whether a variable is scalar.
|
boolean |
MetaData.isTimeType(java.lang.String varName)
Returns whether the given variable represents time.
|
boolean |
MetaData.isTypeR(java.lang.String varName)
Returns whether a variable of type r-variable..See the CDF User's Guide for details.
|
boolean |
GenericReader.isVector(java.lang.String varName)
Returns whether a variable is vector.
|
int[] |
CDFReader.lastAvailableTime(java.lang.String varName)
Returns last available time for a variable.Returned time has millisecond precision.
|
int[] |
CDFReader.lastAvailableTime(java.lang.String varName,
int[] stop)
Returns last available time which is not later than the given time
for a variable.Returned time has millisecond precision.
|
boolean |
MetaData.missingRecordValueIsPad(java.lang.String varName)
Return whether the missing record should be assigned the pad
value.
|
boolean |
MetaData.missingRecordValueIsPrevious(java.lang.String varName)
Return whether the missing record should be assigned the last
seen value.If none has been seen, pad value is assigned.
|
boolean |
MetaData.recordVariance(java.lang.String varName)
Returns an indication of the record varying property of a variable.
|
java.lang.String |
GenericReader.startContainerThread(java.lang.String varName,
java.lang.String targetType,
int[] recordRange,
boolean preserve)
Starts a new thread to extract specified data.
|
boolean |
GenericReader.threadFinished(java.lang.String threadName)
Returns whether the named thread (started via this object) has
finished.
|
TimeInstantModel |
CDFReader.timeModelInstance(java.lang.String varName,
int[] baseTime)
Returns
time instant model with specified base
time and default offset units (millisecond) for a variable. |
TimeInstantModel |
CDFReader.timeModelInstance(java.lang.String varName,
int[] baseTime,
TimePrecision offsetUnits)
Returns
time instant model with specified base
time and specified offset units (millisecond) for a variable. |
java.lang.String |
GenericReader.userTimeVariableName(java.lang.String varName)
Returns the name of the user supplied time variable for
the given variable.
|
abstract java.lang.String |
MetaData.userTimeVariableName(java.lang.String varName) |
Constructor and Description |
---|
CDFReader(java.lang.String cdfFile)
Constructs a reader for the given CDF file.
|
CDFReader(java.net.URL url)
Constructs a reader for the given URL for CDF file.
|
CDFWriter(GenericReader cdf)
Constructs a
CDFWriter populated
with data from the given GenericReader . |
CDFWriter(java.lang.String fname)
Constructs a column major
CDFWriter populated
with data from the given CDF file. |
CDFWriter(java.lang.String[] files)
Constructs a column major
CDFWriter populated
with data from the given files. |
CDFWriter(java.lang.String[] files,
boolean targetMajority)
Constructs a
CDFWriter of specified row majority,
populated with data from the given files. |
CDFWriter(java.lang.String[] files,
boolean targetMajority,
SelectedVariableCollection col)
Constructs a
CDFWriter of specified row majority,
populated with selected variables, and variables they depend on, from
the given files. |
CDFWriter(java.lang.String[] files,
SelectedVariableCollection col)
Constructs a column major
CDFWriter populated with
selected variables, and variables they depend on, from the given files. |
CDFWriter(java.lang.String fname,
boolean targetMajority)
Constructs a
CDFWriter of specified row majority,
populated with data from the given file. |
CDFWriter(java.lang.String fname,
boolean targetMajority,
SelectedVariableCollection col)
Constructs a
CDFWriter of specified row majority,
populated with selected variables, and variables they depend on, from
the given file. |
CDFWriter(java.lang.String fname,
SelectedVariableCollection col)
Constructs a column major
CDFWriter populated with
selected variables, and variables they depend on, from the given file. |
CDFWriter(java.net.URL url)
Constructs a column major
CDFWriter populated
with data from the given URL. |
CDFWriter(java.net.URL[] urls)
Constructs a column major
CDFWriter populated
with data from the given array of URLs. |
CDFWriter(java.net.URL[] urls,
boolean targetMajority)
Constructs a
CDFWriter of specified row majority,
populated with data from the given array of URLs. |
CDFWriter(java.net.URL[] urls,
boolean targetMajority,
SelectedVariableCollection col)
Constructs a
CDFWriter of specified row majority,
populated with selected variables, and variables they depend on, from
the given array of URLs. |
CDFWriter(java.net.URL[] urls,
SelectedVariableCollection col)
Constructs a column major
CDFWriter populated with
selected variables, and variables they depend on, from the given
array of URLs. |
CDFWriter(java.net.URL url,
boolean targetMajority)
Constructs a
CDFWriter of specified row majority,
populated with data from the given URL. |
CDFWriter(java.net.URL url,
boolean targetMajority,
SelectedVariableCollection col)
Constructs a
CDFWriter of specified row majority,
populated with selected variables, and variables they depend on, from
the given URL. |
CDFWriter(java.net.URL url,
SelectedVariableCollection col)
Constructs a column major
CDFWriter populated with
selected variables, and variables they depend on, from the given URL. |
GenericReader(java.lang.String cdfFile)
Constructs a reader for the given CDF file.
|
GenericReader(java.net.URL url)
Constructs a reader for the given CDF URL.
|