ucar.unidata.geoloc.vertical
Class AtmosLnPressure

java.lang.Object
  extended by ucar.unidata.geoloc.vertical.VerticalTransformImpl
      extended by 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.

Since:
May 6, 2008
Author:
caron
See Also:
http://cf-pcmdi.llnl.gov/

Field Summary
static java.lang.String LEV
           
static java.lang.String P0
           
 
Constructor Summary
AtmosLnPressure(NetcdfFile ds, Dimension timeDim, java.util.List<Parameter> params)
          Create a new vertical transform for Ocean S coordinates
 
Method Summary
 ArrayDouble.D3 getCoordinateArray(int timeIndex)
          Get the 3D vertical coordinate array for this time step.
 
Methods inherited from class ucar.unidata.geoloc.vertical.VerticalTransformImpl
getUnitString, isTimeDependent, subset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

P0

public static final java.lang.String P0
See Also:
Constant Field Values

LEV

public static final java.lang.String LEV
See Also:
Constant Field Values
Constructor Detail

AtmosLnPressure

public AtmosLnPressure(NetcdfFile ds,
                       Dimension timeDim,
                       java.util.List<Parameter> params)
Create a new vertical transform for Ocean S coordinates

Parameters:
ds - dataset
timeDim - time dimension
params - list of transformation Parameters
Method Detail

getCoordinateArray

public ArrayDouble.D3 getCoordinateArray(int timeIndex)
                                  throws java.io.IOException,
                                         InvalidRangeException
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 data
InvalidRangeException - _more_