|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.DataInstance
ucar.unidata.data.grid.GridDataInstance
public class GridDataInstance
A wrapper around grid data.
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.data.DataInstance |
|---|
dataChoice, dataSelection, haveBeenInitialized, inError, myRequestProperties |
| Constructor Summary | |
|---|---|
GridDataInstance(DataChoice dataChoice,
DataSelection dataSelection,
Hashtable requestProperties)
Create a GridDataInstance. |
|
GridDataInstance(DataChoice dataChoice,
DataSelection dataSelection,
Hashtable requestProperties,
Data theData)
Create a GridDataInstance. |
|
| Method Summary | |
|---|---|
float[][] |
getCoords3D()
Get the array of 3D coordinate values from the spatial set, this returns the actual array, so don't change the values! |
DateTime[] |
getDateTimes()
Get the array of times for this data |
Gridded3DSet |
getDomainSet3D()
Get the 3D domain |
FieldImpl |
getFieldImpl()
Deprecated. Use getGrid() instead |
FlatField |
getFlatField()
Get a representative grid from one timestep. |
FieldImpl |
getGrid()
Access to the FieldImpl made. |
FieldImpl |
getGrid(boolean copy)
Access to the FieldImpl made. |
Real[] |
getLevels()
Get the array of levels associated with this grid |
MapProjection |
getNavigation()
Get the geolocation information for this grid |
int |
getNumRealTypes()
Get the number of RealType (parameters) in this grid |
FieldImpl |
getOriginalGrid()
Access to the original FieldImpl made. |
Range |
getRange(int idx)
Return the idx'th range value |
Range[] |
getRanges()
Get all the data ranges for this grid |
MathType |
getRangeType()
The MathType of the parameter(s) |
Unit |
getRawUnit(int idx)
Get the default unit for the parameter at idx |
RealType |
getRealType(int idx)
The real type of the field |
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 |
SampledSet |
getSpatialDomain()
Get the spatial domain associated with this grid. |
CoordinateSystem |
getThreeDCoordTrans()
Get the coordinate system for the 3D domain. |
RealType |
getZType()
Get the RealType of the data's Z coordinate |
Unit |
getZUnit()
Get the unit of the data's Z coordinate |
static Unit |
getZUnit(FieldImpl field)
Get the vertical unit for a given grid |
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 |
isTimeSequence()
Get whether this is a time sequence or not |
void |
reInitialize()
Reinitialize this GridDataInstance |
FieldImpl |
slice(SampledSet slice)
Slice (resample) the grid along the slice Interface to GridUtil.slice(). |
FieldImpl |
sliceAlongLatLonLine(LatLonPoint start,
LatLonPoint end)
Slice the grid at along a lat/lon line Interface to GridUtil.sliceAlongLatLonLine(). |
FieldImpl |
sliceAlongLatLonLine(LatLonPoint start,
LatLonPoint end,
int samplingMode)
Slice the grid at along a lat/lon line Interface to GridUtil.sliceAlongLatLonLine(). |
FieldImpl |
sliceAtLevel(Real level)
Slice the grid at a particular level. |
String |
toString()
String representation of this GridDataInstance |
| Methods inherited from class ucar.unidata.data.DataInstance |
|---|
checkInit, dataOk, getData, getData, getData, getDataChoice, getNextId, getParamName, needsInitialization, setDataSelection, setTheData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GridDataInstance(DataChoice dataChoice,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException
dataChoice - choice describing the datadataSelection - sub selection propertiesrequestProperties - special control request properties
RemoteException - Java RMI error
VisADException - VisAD Error
public GridDataInstance(DataChoice dataChoice,
DataSelection dataSelection,
Hashtable requestProperties,
Data theData)
throws VisADException,
RemoteException
dataChoice - choice describing the datadataSelection - sub selection propertiesrequestProperties - special control request propertiestheData - Any initial data. Usually is null.
RemoteException - Java RMI error
VisADException - VisAD Error| Method Detail |
|---|
public void reInitialize()
throws VisADException,
RemoteException
reInitialize in class DataInstanceRemoteException - Java RMI error
VisADException - VisAD Error
protected void init()
throws VisADException,
RemoteException
init in class DataInstanceRemoteException - Java RMI error
VisADException - VisAD Errorpublic MapProjection getNavigation()
public boolean isTimeSequence()
public boolean is3D()
public SampledSet getSpatialDomain()
public static Unit getZUnit(FieldImpl field)
throws VisADException,
RemoteException
field - 3D grid
RemoteException - Java RMI error
VisADException - VisAD Errorpublic Range getRange(int idx)
idx - range index
public Range[] getRanges()
public RealType getRealType(int idx)
idx - index of parameter
public int getNumRealTypes()
public MathType getRangeType()
public String getRealTypeName(int idx)
idx - index of parameter
public FieldImpl getFieldImpl()
public FieldImpl getGrid()
public FieldImpl getGrid(boolean copy)
copy - make a copy if true
public FieldImpl getOriginalGrid()
public Unit getRawUnit(int idx)
idx - index of parameter
public Gridded3DSet getDomainSet3D()
public float[][] getCoords3D()
public CoordinateSystem getThreeDCoordTrans()
public ThreeDSize getSize()
public int getSizeX()
public int getSizeY()
public int getSizeZ()
public FlatField getFlatField()
public Unit getZUnit()
public RealType getZType()
public String getZUnitName()
public String toString()
toString in class Objectpublic Real[] getLevels()
public DateTime[] getDateTimes()
public FieldImpl sliceAtLevel(Real level)
throws VisADException
level - level to slice at
VisADException - problems doing sliceGridUtil.sliceAtLevel(FieldImpl, Real)
public FieldImpl sliceAlongLatLonLine(LatLonPoint start,
LatLonPoint end)
throws VisADException
start - starting position for lineend - ending position for line
VisADException - problem doing sliceGridUtil.sliceAlongLatLonLine(FieldImpl, LatLonPoint, LatLonPoint)
public FieldImpl sliceAlongLatLonLine(LatLonPoint start,
LatLonPoint end,
int samplingMode)
throws VisADException
start - starting position for lineend - ending position for linesamplingMode - type of sampling
VisADException - problem doing sliceGridUtil.sliceAlongLatLonLine(FieldImpl, LatLonPoint, LatLonPoint)
public FieldImpl slice(SampledSet slice)
throws VisADException
slice - resampling domain
VisADException - problem with slice
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||