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 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
existingDataField
public static final 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,
List<Parameter> params)
- Constructor.
- Parameters:
ds
- containing DatasettimeDim
- time Dimensionparams
- list of transformation Parameters
getCoordinateArray
public ArrayDouble.D3 getCoordinateArray(int timeIndex)
throws 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:
IOException
- problem reading the data
InvalidRangeException
- _more_
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.