ucar.unidata.geoloc.vertical
Class VTfromExistingData
java.lang.Object
ucar.unidata.geoloc.vertical.VerticalTransformImpl
ucar.unidata.geoloc.vertical.VTfromExistingData
- All Implemented Interfaces:
- VerticalTransform
public class VTfromExistingData
- extends VerticalTransformImpl
This implements a VerticalTransform using an existing 3D variable.
This is a common case when the 3D pressure or height field is stored in the file.
- Author:
- john
|
Field Summary |
static java.lang.String |
existingDataField
The name of the Parameter whose value is the variable that contains the 2D Height or Pressure field |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
existingDataField
public static final java.lang.String existingDataField
- The name of the Parameter whose value is the variable that contains the 2D Height or Pressure field
- See Also:
- Constant Field Values
VTfromExistingData
public VTfromExistingData(NetcdfFile ds,
Dimension timeDim,
java.util.List<ucar.unidata.util.Parameter> params)
- Constructor.
- Parameters:
ds - containing DatasettimeDim - time Dimensionparams - list of transformation Parameters
getCoordinateArray
public ArrayDouble.D3 getCoordinateArray(int timeIndex)
throws java.io.IOException,
InvalidRangeException
- Description copied from class:
VerticalTransformImpl
- Get the 3D vertical coordinate array for this time step.
- Specified by:
getCoordinateArray in interface VerticalTransform- Specified by:
getCoordinateArray in class VerticalTransformImpl
- Parameters:
timeIndex - the time index. Ignored if !isTimeDependent().
- Returns:
- vertical coordinate array
- Throws:
java.io.IOException - problem reading the data
InvalidRangeException - _more_