public class GridDataInstance extends DataInstance
dataChoice, dataSelection, haveBeenInitialized, inError, myRequestProperties
Constructor and Description |
---|
GridDataInstance(DataChoice dataChoice,
DataSelection dataSelection,
java.util.Hashtable requestProperties)
Create a GridDataInstance.
|
GridDataInstance(DataChoice dataChoice,
DataSelection dataSelection,
java.util.Hashtable requestProperties,
visad.Data theData)
Create a GridDataInstance.
|
Modifier and Type | Method and Description |
---|---|
float[][] |
getCoords3D()
Get the array of 3D coordinate values from the spatial set, this
returns the actual array, so don't change the values!
|
visad.DateTime[] |
getDateTimes()
Get the array of times for this data
|
visad.Gridded3DSet |
getDomainSet3D()
Get the 3D domain
|
visad.Gridded1DSet |
getEnsembleSet()
Get the ensemble set
|
visad.FieldImpl |
getFieldImpl()
Deprecated.
Use getGrid() instead
|
visad.FlatField |
getFlatField()
Get a representative grid from one timestep.
|
visad.FieldImpl |
getGrid()
Access to the FieldImpl made.
|
visad.FieldImpl |
getGrid(boolean copy)
Access to the FieldImpl made.
|
visad.Real[] |
getLevels()
Get the array of levels associated with this grid
|
visad.georef.MapProjection |
getNavigation()
Get the geolocation information for this grid
|
int |
getNumEnsembles()
Get number of ensembles
|
int |
getNumRealTypes()
Get the number of RealType (parameters) in this grid
|
Range |
getRange(int idx)
Return the idx'th range value
|
Range[] |
getRanges()
Get all the data ranges for this grid
|
visad.MathType |
getRangeType()
The MathType of the parameter(s)
|
visad.Unit |
getRawUnit(int idx)
Get the default unit for the parameter at idx
|
visad.RealType |
getRealType(int idx)
The real type of the field
|
java.lang.String |
getRealTypeName(int idx)
Get the name of the RealType of the parameter at idx
|
ThreeDSize |
getSize()
Get the sizes of the 3D domain
|
int |
getSizeX()
Get the number of X components in the domain
|
int |
getSizeY()
Get the number of Y components in the domain
|
int |
getSizeZ()
Get the number of Z components in the domain
|
visad.SampledSet |
getSpatialDomain()
Get the spatial domain associated with this grid.
|
visad.CoordinateSystem |
getThreeDCoordTrans()
Get the coordinate system for the 3D domain.
|
visad.RealType |
getZType()
Get the RealType of the data's Z coordinate
|
visad.Unit |
getZUnit()
Get the unit of the data's Z coordinate
|
static visad.Unit |
getZUnit(visad.FieldImpl field)
Get the vertical unit for a given grid
|
java.lang.String |
getZUnitName()
Get the name of the data's Z coordinate Unit
|
protected void |
init()
Initialize this object.
|
boolean |
is3D()
Check if this is a 3D grid or not
|
boolean |
isEnsemble()
Is the grid an ensemble?
|
boolean |
isTimeSequence()
Get whether this is a time sequence or not
|
void |
reInitialize()
Reinitialize this GridDataInstance
|
visad.FieldImpl |
slice(visad.SampledSet slice)
Slice (resample) the grid along the slice
Interface to GridUtil.slice().
|
visad.FieldImpl |
sliceAlongLatLonLine(visad.georef.LatLonPoint start,
visad.georef.LatLonPoint end)
Slice the grid at along a lat/lon line
Interface to GridUtil.sliceAlongLatLonLine().
|
visad.FieldImpl |
sliceAlongLatLonLine(visad.georef.LatLonPoint start,
visad.georef.LatLonPoint end,
int samplingMode)
Slice the grid at along a lat/lon line
Interface to GridUtil.sliceAlongLatLonLine().
|
visad.FieldImpl |
sliceAlongLatLonLine(java.util.List<visad.georef.LatLonPoint> points,
int samplingMode)
Slice the grid at along a lat/lon line
Interface to GridUtil.sliceAlongLatLonLine().
|
visad.FieldImpl |
sliceAtLevel(visad.Real level)
Slice the grid at a particular level.
|
java.lang.String |
toString()
String representation of this GridDataInstance
|
checkInit, dataOk, getData, getData, getData, getDataChoice, getDataSelection, getNextId, getParamName, needsInitialization, setData, setDataSelection, setTheData
public GridDataInstance(DataChoice dataChoice, DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
dataChoice
- choice describing the datadataSelection
- sub selection propertiesrequestProperties
- special control request propertiesjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorpublic GridDataInstance(DataChoice dataChoice, DataSelection dataSelection, java.util.Hashtable requestProperties, visad.Data theData) throws visad.VisADException, java.rmi.RemoteException
dataChoice
- choice describing the datadataSelection
- sub selection propertiesrequestProperties
- special control request propertiestheData
- Any initial data. Usually is null.java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorpublic void reInitialize() throws visad.VisADException, java.rmi.RemoteException
reInitialize
in class DataInstance
java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorprotected void init() throws visad.VisADException, java.rmi.RemoteException
init
in class DataInstance
java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorpublic visad.georef.MapProjection getNavigation()
public boolean isTimeSequence()
public boolean is3D()
public visad.SampledSet getSpatialDomain()
public static visad.Unit getZUnit(visad.FieldImpl field) throws visad.VisADException, java.rmi.RemoteException
field
- 3D gridjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorpublic Range getRange(int idx)
idx
- range indexpublic Range[] getRanges()
public visad.RealType getRealType(int idx)
idx
- index of parameterpublic int getNumRealTypes()
public visad.MathType getRangeType()
public java.lang.String getRealTypeName(int idx)
idx
- index of parameterpublic visad.FieldImpl getFieldImpl()
public visad.FieldImpl getGrid()
public visad.FieldImpl getGrid(boolean copy)
copy
- make a copy if truepublic visad.Unit getRawUnit(int idx)
idx
- index of parameterpublic visad.Gridded3DSet getDomainSet3D()
public float[][] getCoords3D()
public visad.CoordinateSystem getThreeDCoordTrans()
public ThreeDSize getSize()
public int getSizeX()
public int getSizeY()
public int getSizeZ()
public visad.FlatField getFlatField()
public visad.Unit getZUnit()
public visad.RealType getZType()
public java.lang.String getZUnitName()
public java.lang.String toString()
toString
in class java.lang.Object
public visad.Real[] getLevels()
public visad.DateTime[] getDateTimes()
public visad.FieldImpl sliceAtLevel(visad.Real level) throws visad.VisADException
level
- level to slice atvisad.VisADException
- problems doing sliceGridUtil.sliceAtLevel(FieldImpl, Real)
public visad.FieldImpl sliceAlongLatLonLine(visad.georef.LatLonPoint start, visad.georef.LatLonPoint end) throws visad.VisADException
start
- starting position for lineend
- ending position for linevisad.VisADException
- problem doing sliceGridUtil.sliceAlongLatLonLine(FieldImpl, LatLonPoint, LatLonPoint)
public visad.FieldImpl sliceAlongLatLonLine(visad.georef.LatLonPoint start, visad.georef.LatLonPoint end, int samplingMode) throws visad.VisADException
start
- starting position for lineend
- ending position for linesamplingMode
- type of samplingvisad.VisADException
- problem doing sliceGridUtil.sliceAlongLatLonLine(FieldImpl, LatLonPoint, LatLonPoint)
public visad.FieldImpl sliceAlongLatLonLine(java.util.List<visad.georef.LatLonPoint> points, int samplingMode) throws visad.VisADException
start
- starting position for lineend
- ending position for linesamplingMode
- type of samplingvisad.VisADException
- problem doing sliceGridUtil.sliceAlongLatLonLine(FieldImpl, LatLonPoint, LatLonPoint)
public visad.FieldImpl slice(visad.SampledSet slice) throws visad.VisADException
slice
- resampling domainvisad.VisADException
- problem with slicepublic boolean isEnsemble()
public visad.Gridded1DSet getEnsembleSet()
public int getNumEnsembles()