Package ucar.unidata.geoloc.vertical
Class AtmosSigma
- java.lang.Object
-
- ucar.unidata.geoloc.vertical.VerticalTransformImpl
-
- ucar.unidata.geoloc.vertical.AtmosSigma
-
- All Implemented Interfaces:
VerticalTransform
public class AtmosSigma extends VerticalTransformImpl
Create a 3D height(z,y,x) array using the CF formula for "atmospheric sigma vertical coordinate".pressure(x,y,z) = ptop + sigma(z)*surfacePressure(x,y)
- See Also:
- http://cf-pcmdi.llnl.gov/
-
-
Constructor Summary
Constructors Constructor Description AtmosSigma(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 (needds test!!!)-
Methods inherited from class ucar.unidata.geoloc.vertical.VerticalTransformImpl
getParameterBooleanValue, getParameterStringValue, getTimeDimension, getUnitString, isTimeDependent, readArray, subset
-
-
-
-
Field Detail
-
PTOP
public static final String PTOP
P-naught identifier- See Also:
- Constant Field Values
-
PS
public static final String PS
Surface pressure name identifier- See Also:
- Constant Field Values
-
SIGMA
public static final String SIGMA
The "depth" variable name identifier- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AtmosSigma
public AtmosSigma(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) throws IOException, InvalidRangeException
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
- Throws:
IOException
- problem reading dataInvalidRangeException
- _more_
-
getCoordinateArray1D
public ArrayDouble.D1 getCoordinateArray1D(int timeIndex, int xIndex, int yIndex) throws IOException, InvalidRangeException
Get the 1D vertical coordinate array for this time step and point (needds test!!!)- 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
- Throws:
IOException
- problem reading dataInvalidRangeException
- _more_
-
-