|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Grid
Experimental Grid fetaure type TODO has extra dimension(s)
Method Summary | |
---|---|
Attribute |
findAttributeIgnoreCase(String name)
Convenience function; lookup Attribute by name. |
String |
findAttValueIgnoreCase(String attName,
String defaultValue)
Convenience function; lookup Attribute value by name. |
List<Attribute> |
getAttributes()
Get a List of Attribute specific to the Grid |
GridCoordSystem |
getCoordinateSystem()
get the Grid's Coordinate System. |
DataType |
getDataType()
get the data type |
String |
getDescription()
Get the description/long_name of the Grid |
Dimension |
getDimension(int i)
get the ith dimension |
List<Dimension> |
getDimensions()
Returns a List of Dimension containing the dimensions used by this grid. |
String |
getInfo()
human readable information about this Grid. |
MAMath.MinMax |
getMinMaxSkipMissingData(Array data)
Get the minimum and the maximum data value of the previously read Array, skipping missing values as defined by isMissingData(double val). |
String |
getName()
Get the name of the Grid |
ProjectionImpl |
getProjection()
get the Projection, if it exists. |
int |
getRank()
get the rank |
int[] |
getShape()
get the shape (canonical ordering) |
String |
getUnitsString()
Get the unit string |
VariableDS |
getVariable()
Get the underlying Variable, if it exists. |
boolean |
hasMissingData()
true if there may be missing data |
boolean |
isMissingData(double val)
if val is missing data |
Grid |
makeSubset(Range rt_range,
Range e_range,
Range t_range,
Range z_range,
Range y_range,
Range x_range)
Create a new GeoGrid that is a logical subset of this GeoGrid. |
Array |
readDataSlice(int rt_index,
int e_index,
int t_index,
int z_index,
int y_index,
int x_index)
This reads an arbitrary data slice, returning the data in canonical order (rt-e-t-z-y-x). |
Method Detail |
---|
String getName()
String getDescription()
String getUnitsString()
DataType getDataType()
int getRank()
int[] getShape()
List<Attribute> getAttributes()
Attribute findAttributeIgnoreCase(String name)
name
- the name of the attribute
String findAttValueIgnoreCase(String attName, String defaultValue)
attName
- name of the attributedefaultValue
- if not found, use this as the default
List<Dimension> getDimensions()
Dimension getDimension(int i)
i
- index of dimension
GridCoordSystem getCoordinateSystem()
ProjectionImpl getProjection()
boolean hasMissingData()
boolean isMissingData(double val)
val
- test this value
MAMath.MinMax getMinMaxSkipMissingData(Array data)
data
- Array to get min/max values
Array readDataSlice(int rt_index, int e_index, int t_index, int z_index, int y_index, int x_index) throws IOException
rt_index
- if < 0, get all of runtime dim; if valid index, fix slice to that value.e_index
- if < 0, get all of ensemble dim; if valid index, fix slice to that value.t_index
- if < 0, get all of time dim; if valid index, fix slice to that value.z_index
- if < 0, get all of z dim; if valid index, fix slice to that value.y_index
- if < 0, get all of y dim; if valid index, fix slice to that value.x_index
- if < 0, get all of x dim; if valid index, fix slice to that value.
IOException
- on io errorGrid makeSubset(Range rt_range, Range e_range, Range t_range, Range z_range, Range y_range, Range x_range) throws InvalidRangeException
rt_range
- subset the runtime dimension, or null if you want all of ite_range
- subset the ensemble dimension, or null if you want all of itt_range
- subset the time dimension, or null if you want all of itz_range
- subset the vertical dimension, or null if you want all of ity_range
- subset the y dimension, or null if you want all of itx_range
- subset the x dimension, or null if you want all of it
InvalidRangeException
- if ranges are invlaidString getInfo()
VariableDS getVariable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |