Package ucar.unidata.geoloc.vertical
Class AtmosLnPressure
- java.lang.Object
-
- ucar.unidata.geoloc.vertical.VerticalTransformImpl
-
- ucar.unidata.geoloc.vertical.AtmosLnPressure
-
- All Implemented Interfaces:
VerticalTransform
public class AtmosLnPressure extends VerticalTransformImpl
Implement CF vertical coordinate "atmosphere_ln_pressure_coordinate" pressure(z) = p0 * exp(-lev(k))" . Theres a problem here, since its not 3D, we dont know what the 2D extent is. DO NOT USE: see CF1Convention.makeAtmLnCoordinate()- Since:
- May 6, 2008
- See Also:
- http://cf-pcmdi.llnl.gov/
-
-
Constructor Summary
Constructors Constructor Description AtmosLnPressure(NetcdfFile ds, Dimension timeDim, List<Parameter> params)
Create a new vertical transform for Ocean S coordinates
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayDouble.D3
getCoordinateArray(int timeIndex)
Get the 3D vertical coordinate array for this time step.ArrayDouble.D1
getCoordinateArray1D(int timeIndex, int xIndex, int yIndex)
Get the 1D vertical coordinate array for this time step and point-
Methods inherited from class ucar.unidata.geoloc.vertical.VerticalTransformImpl
getParameterBooleanValue, getParameterStringValue, getTimeDimension, getUnitString, isTimeDependent, readArray, subset
-
-
-
-
Field Detail
-
P0
public static final String P0
- See Also:
- Constant Field Values
-
LEV
public static final String LEV
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AtmosLnPressure
public AtmosLnPressure(NetcdfFile ds, Dimension timeDim, List<Parameter> params)
Create a new vertical transform for Ocean S coordinates- Parameters:
ds
- datasettimeDim
- time dimensionparams
- list of transformation Parameters
-
-
Method Detail
-
getCoordinateArray
public ArrayDouble.D3 getCoordinateArray(int timeIndex)
Get the 3D vertical coordinate array for this time step.- Specified by:
getCoordinateArray
in interfaceVerticalTransform
- Specified by:
getCoordinateArray
in classVerticalTransformImpl
- Parameters:
timeIndex
- the time index. Ignored if !isTimeDependent().- Returns:
- vertical coordinate array
-
getCoordinateArray1D
public ArrayDouble.D1 getCoordinateArray1D(int timeIndex, int xIndex, int yIndex)
Get the 1D vertical coordinate array for this time step and point- Specified by:
getCoordinateArray1D
in interfaceVerticalTransform
- Specified by:
getCoordinateArray1D
in classVerticalTransformImpl
- Parameters:
timeIndex
- the time index. Ignored if !isTimeDependent().xIndex
- the x indexyIndex
- the y index- Returns:
- vertical coordinate array
-
-