org.das2.dataset.TableDataSet
A DataSet
implementation for 3 dimensional z(x,y) data sets
where the data is arranged in a sequence of tables. Each table will have
a set of monotonically increasing x tags and y tags. The x tags for all
the tables, when taken together in the order that the table are in, will
be monotonically increasing over the whole data set. The y tags are constant
over the y scans of each table, but may change, either in number or value,
from table to table.
getDatum
getDatum( int i, int j ) → Datum
Returns the Z value for the given indices into the x and y tags as a
Datum
.
Parameters
i - index of the x tag for the requested value.
j - index of the y tag for the requested value.
Returns:
the value at index location (i, j) as a Datum
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getDouble
getDouble( int i, int j, Units units ) → double
Returns the Z value for the given indices into the x and y tags as a
double
with the given units.
Parameters
i - index of the y tag for the requested value.
j - index of the x tag for the requested value.
units - the units the returned value should be converted to.
Returns:
the value at index location (i, j) as a double
.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getDoubleScan
getDoubleScan( int i, Units units ) → double[]
Parameters
i - an int
units - an Units
Returns:
double[]
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getInt
getInt( int i, int j, Units units ) → int
Returns the Z value for the given indices into the x and y tags as a
int
with the given units.
Parameters
i - index of the x tag for the requested value.
j - index of the y tag for the requested value.
units - the units the returned value should be converted to.
Returns:
the value at index location (i, j) as a int
.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getProperty
getProperty( int table, String name ) → Object
Return the property value attached to the table. This should
simply return DataSet.getProperty() if the table has no special
value for the table.
Parameters
table - an int
name - a String
Returns:
an Object
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getScan
getScan( int i ) → org.das2.datum.DatumVector
Parameters
i - an int
Returns:
org.das2.datum.DatumVector
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getXSlice
getXSlice( int i ) → org.das2.dataset.VectorDataSet
Returns a slice view of this data set for a specific x value
Parameters
i - an int
Returns:
org.das2.dataset.VectorDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getYLength
getYLength( int table ) → int
Returns the number of y tags in the specified table for this data set.
YTags must be monotonically increasing with j.
Parameters
table - index of the table
Returns:
the number of x tags in this data set.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getYSlice
getYSlice( int j, int table ) → org.das2.dataset.VectorDataSet
Returns a slice view of this data set for a specific y value
Parameters
j - an int
table - an int
Returns:
org.das2.dataset.VectorDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getYTagDatum
getYTagDatum( int table, int j ) → Datum
Returns the value of the y tag at the given index j as a
Datum
.
Parameters
table - the table number
j - the index of the requested y tag
Returns:
the value of the y tag at the given index j as a
Datum
.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getYTagDouble
getYTagDouble( int table, int j, Units units ) → double
Returns the value of the y tag at the given index j as a
double
in the given units. YTags must be
monotonically increasing with j.
Parameters
table - the table number
j - the index of the requested y tag
units - the units of the returned value
Returns:
the value of the y tag at the given index j as a
double
.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getYTagInt
getYTagInt( int table, int j, Units units ) → int
Returns the value of the y tag at the given index j as an
int
in the given units. YTags must be
monotonically increasing with j.
Parameters
table - an int
j - the index of the requested y tag
units - the units of the returned value
Returns:
the value of the y tag at the given index j as an
int
.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getYTags
getYTags( int table ) → org.das2.datum.DatumVector
Returns the yTags for this data set as a DatumVector
Parameters
table - the table number
Returns:
the yTags for this data set as a DatumVector
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getZUnits
getZUnits( ) → Units
Returns the Units object representing the unit type of the y values for
this data set.
Returns:
the x units
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
tableCount
tableCount( ) → int
Returns the number of tables in this data set
Returns:
the number of tables in this data set
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
tableEnd
tableEnd( int table ) → int
Returns the index after the last x tag index of the specified table
Parameters
table - the index of the table
Returns:
the index after the last x tag index of the specified table
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
tableOfIndex
tableOfIndex( int i ) → int
Returns the table number that the specified index is in.
Parameters
i - x tag index
Returns:
the table number that the specified index is in
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
tableStart
tableStart( int table ) → int
Returns the first x tag index of the specified table.
Parameters
table - the index of the table.
Returns:
the first x tag index of the specified table
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]