public class VerticalTransformSubset extends VerticalTransformImpl
units
Constructor and Description |
---|
VerticalTransformSubset(VerticalTransform original,
Range t_range,
Range z_range,
Range y_range,
Range x_range)
Create a subset of an existing VerticalTransform
|
Modifier and Type | Method and Description |
---|---|
ArrayDouble.D3 |
getCoordinateArray(int subsetIndex)
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
|
boolean |
isTimeDependent()
Get whether this coordinate is time dependent.
|
getParameterBooleanValue, getParameterStringValue, getTimeDimension, getUnitString, readArray, subset
public VerticalTransformSubset(VerticalTransform original, Range t_range, Range z_range, Range y_range, Range x_range)
original
- make a subset of thist_range
- subset the time dimension, or null if you want all of itz_range
- subset the vertical dimension, or null if you want all of ity_range
- subset the y dimension, or null if you want all of itx_range
- subset the x dimension, or null if you want all of itpublic ArrayDouble.D3 getCoordinateArray(int subsetIndex) throws java.io.IOException, InvalidRangeException
VerticalTransformImpl
getCoordinateArray
in interface VerticalTransform
getCoordinateArray
in class VerticalTransformImpl
subsetIndex
- the time index. Ignored if !isTimeDependent().java.io.IOException
- problem reading the dataInvalidRangeException
- _more_public ArrayDouble.D1 getCoordinateArray1D(int timeIndex, int xIndex, int yIndex) throws java.io.IOException, InvalidRangeException
getCoordinateArray1D
in interface VerticalTransform
getCoordinateArray1D
in class VerticalTransformImpl
timeIndex
- the time index. Ignored if !isTimeDependent().xIndex
- the x indexyIndex
- the y indexjava.io.IOException
- problem reading dataInvalidRangeException
- _more_public boolean isTimeDependent()
VerticalTransformImpl
isTimeDependent
in interface VerticalTransform
isTimeDependent
in class VerticalTransformImpl