|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataFrame
Array-based data and metadata for a single variable.
Method Summary | |
---|---|
ucar.ma2.Array |
getArray()
Gets the Array that contains the data. |
java.lang.Class<?> |
getArrayType()
Gets the element type contained by the data array. |
Axes<DataFrameAxis> |
getAxes()
Gets metadata describing this data frame's axes. |
java.util.List<Dataset> |
getDataset()
Gets the dataset that produced this DataFrame. |
double |
getDouble(DataFrameIndex index)
Gets the item at the specified indices as a double. |
float |
getFloat(DataFrameIndex index)
Gets the item at the specified indices as a float. |
DataFrameIndex |
getIndex()
Gets a DataFrameIndex used to retrieve data from this DataFrame. |
int |
getInt(DataFrameIndex index)
Gets the item at the specified indices as an int. |
long |
getLong(DataFrameIndex index)
Gets the item at the specified indices as a long. |
int[] |
getShape()
Gets the shape - the array dimensionality - of this DataFrame. |
long |
getSize()
Gets the total number of items in the data array. |
Variable |
getVariable()
Gets the variable associated with this DataFrame. |
DataFrame |
slice(Slice slice)
Creates a new DataFrame that is a slice or subsection of this one. |
Method Detail |
---|
ucar.ma2.Array getArray()
Variable getVariable()
Axes<DataFrameAxis> getAxes()
java.util.List<Dataset> getDataset()
java.lang.Class<?> getArrayType()
long getSize()
int[] getShape()
DataFrameIndex getIndex()
double getDouble(DataFrameIndex index)
index
- the index of the data to retrieve.
float getFloat(DataFrameIndex index)
index
- the index of the data to retrieve.
int getInt(DataFrameIndex index)
index
- the index of the data to retrieve.
long getLong(DataFrameIndex index)
index
- the index of the data to retrieve.
DataFrame slice(Slice slice) throws ucar.ma2.InvalidRangeException
slice
- describes the slice of data contained by the new DataFrame.
ucar.ma2.InvalidRangeException
- if the slice is not within the range of this DataFrame's
dimensions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |