|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.dataset.grid.GeoGrid
public class GeoGrid
A georeferencing "gridded" VariableEnhanced, that has a GridCoordSys. In VisAD data model, it is a sampled Field. The dimension are put into canonical order: (t, z, y, x).
Implementation note: If the Horizontal axes are 2D, the x and y dimensions are arbitrarily chosen to be gcs.getXHorizAxis().getDimension(1), gcs.getXHorizAxis().getDimension(0) respectively.
Note: these classes should be considered experimental and will likely be refactored in the next release.
| Constructor Summary | |
|---|---|
GeoGrid(GridDataset dataset,
VariableEnhanced dsvar,
GridCoordSys gcs)
Deprecated. Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object oo)
Deprecated. Instances which have same name and coordinate system are equal. |
Attribute |
findAttributeIgnoreCase(java.lang.String name)
Deprecated. Convenience function; lookup Attribute by name. |
java.lang.String |
findAttValueIgnoreCase(java.lang.String attName,
java.lang.String defaultValue)
Deprecated. |
java.util.List |
getAttributes()
Deprecated. |
GridCoordSys |
getCoordinateSystem()
Deprecated. get the GridCoordSys for this GeoGrid. |
Array |
getDataSlice(int t,
int z,
int y,
int x)
Deprecated. use readDataSlice |
DataType |
getDataType()
Deprecated. get the data type |
java.lang.String |
getDescription()
Deprecated. get the standardized description, see VariableStandardized.getDescription() |
Dimension |
getDimension(int i)
Deprecated. get the ith dimension |
java.util.List |
getDimensions()
Deprecated. Returns an ArrayList containing the dimensions used by this geoGrid. |
java.lang.String |
getInfo()
Deprecated. nicely formatted information |
java.util.ArrayList |
getLevels()
Deprecated. ArrayList of thredds.util.NamedObject, from the GridCoordSys. |
MAMath.MinMax |
getMinMaxSkipMissingData(Array a)
Deprecated. Get the minimum and the maximum data value of the previously read Array, skipping missing values as defined by isMissingData(double val). |
java.lang.String |
getName()
Deprecated. get the name of the geoGrid. |
ProjectionImpl |
getProjection()
Deprecated. get the Projection. |
int |
getRank()
Deprecated. get the rank |
int[] |
getShape()
Deprecated. get the shape |
Dimension |
getTimeDimension()
Deprecated. get the time Dimension, or null if none |
int |
getTimeDimensionIndex()
Deprecated. get the time Dimension index in the geogrid (canonical order), or -1 if none |
java.util.ArrayList |
getTimes()
Deprecated. ArrayList of thredds.util.NamedObject, from the GridCoordSys. |
java.lang.String |
getUnitsString()
Deprecated. get the unit as a string, see VariableStandardized.getUnitString() |
java.lang.String |
getUnitString()
Deprecated. use getUnitsString() |
VariableEnhanced |
getVariable()
Deprecated. |
Dimension |
getXDimension()
Deprecated. get the x Dimension |
int |
getXDimensionIndex()
Deprecated. get the x Dimension index in the geogrid (canonical order) |
Dimension |
getYDimension()
Deprecated. get the y Dimension, |
int |
getYDimensionIndex()
Deprecated. get the y Dimension index in the geogrid (canonical order) |
Dimension |
getZDimension()
Deprecated. get the z Dimension, or null if none |
int |
getZDimensionIndex()
Deprecated. get the z Dimension index in the geogrid (canonical order), or -1 if none |
int |
hashCode()
Deprecated. Override Object.hashCode() to be consistent with equals. |
boolean |
hasMissingData()
Deprecated. true if there may be missing data, see VariableStandardized.hasMissing() |
boolean |
isMissingData(double val)
Deprecated. if val is missing data, see VariableStandardized.isMissingData() |
Array |
readDataSlice(int t,
int z,
int y,
int x)
Deprecated. This reads in an arbitrary data slice, with the data in canonical order (t-z-y-x). |
Array |
readVolumeData(int t)
Deprecated. Reads in the data "volume" at the given time index. |
Array |
readYXData(int t,
int z)
Deprecated. Reads a Y-X "horizontal slice" at the given time and vertical index. |
Array |
readZYData(int t,
int x)
Deprecated. Reads a Z-Y "vertical slice" at the given time and x index. |
float[] |
setMissingToNaN(float[] values)
Deprecated. Convert (in place) all values in the given array that are considered as "missing" to Float.NaN, according to vs.isMissing(val). |
GeoGrid |
subset(Range t_range,
Range z_range,
LatLonRect bbox,
int z_stride,
int y_stride,
int x_stride)
Deprecated. Create a new GeoGrid that is a logical subset of this GeoGrid. |
GeoGrid |
subset(Range t_range,
Range z_range,
Range y_range,
Range x_range)
Deprecated. Create a new GeoGrid that is a logical subset of this GeoGrid. |
java.lang.String |
toString()
Deprecated. string representation |
void |
writeFile(java.lang.String filename)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GeoGrid(GridDataset dataset,
VariableEnhanced dsvar,
GridCoordSys gcs)
dataset - belongs to this datasetdsvar - wraps this Variablegcs - has this grid coordinate system| Method Detail |
|---|
public java.util.List getDimensions()
public Dimension getDimension(int i)
i - : which dimension
public Dimension getTimeDimension()
public Dimension getZDimension()
public Dimension getYDimension()
public Dimension getXDimension()
public int getTimeDimensionIndex()
public int getZDimensionIndex()
public int getYDimensionIndex()
public int getXDimensionIndex()
public Attribute findAttributeIgnoreCase(java.lang.String name)
name - the name of the attribute
public java.lang.String findAttValueIgnoreCase(java.lang.String attName,
java.lang.String defaultValue)
public int getRank()
public int[] getShape()
public DataType getDataType()
public java.util.List getAttributes()
public VariableEnhanced getVariable()
public java.lang.String getName()
getName in interface NamedObjectpublic GridCoordSys getCoordinateSystem()
public ProjectionImpl getProjection()
public java.util.ArrayList getLevels()
public java.util.ArrayList getTimes()
public java.lang.String getDescription()
getDescription in interface NamedObjectpublic java.lang.String getUnitsString()
public java.lang.String getUnitString()
public boolean hasMissingData()
public boolean isMissingData(double val)
public float[] setMissingToNaN(float[] values)
values - input array
public MAMath.MinMax getMinMaxSkipMissingData(Array a)
a - Array to get min/max values
public Array readVolumeData(int t)
throws java.io.IOException
t - time index; ignored if no time axis.
java.io.IOException
public Array readYXData(int t,
int z)
throws java.io.IOException
t - time index; ignored if no time axis.z - vertical index; ignored if no z axis.
java.io.IOException
public Array readZYData(int t,
int x)
throws java.io.IOException
t - time index; ignored if no time axis.x - x index; ignored if no x axis.
java.io.IOException
public Array getDataSlice(int t,
int z,
int y,
int x)
throws java.io.IOException
java.io.IOException
public Array readDataSlice(int t,
int z,
int y,
int x)
throws java.io.IOException
t - if < 0, get all of time dim; if valid index, fix sliceto that value.z - if < 0, get all of z dim; if valid index, fix slice to that value.y - if < 0, get all of y dim; if valid index, fix slice to that value.x - if < 0, get all of x dim; if valid index, fix slice to that value.
java.io.IOException
public GeoGrid subset(Range t_range,
Range z_range,
LatLonRect bbox,
int z_stride,
int y_stride,
int x_stride)
throws InvalidRangeException
t_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 itbbox - a lat/lon bounding box, or null if you want all x,yz_stride - use only if z_range is null, then take all z with this stride (1 means all)y_stride - use this stride on the y coordinate (1 means all)x_stride - use this stride on the x coordinate (1 means all)
InvalidRangeException
public GeoGrid subset(Range t_range,
Range z_range,
Range y_range,
Range x_range)
throws InvalidRangeException
t_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
public void writeFile(java.lang.String filename)
throws java.io.IOException
java.io.IOExceptionpublic boolean equals(java.lang.Object oo)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||