Package ucar.unidata.geoloc.vertical
Class VerticalTransformSubset
- java.lang.Object
-
- ucar.unidata.geoloc.vertical.VerticalTransformImpl
-
- ucar.unidata.geoloc.vertical.VerticalTransformSubset
-
- All Implemented Interfaces:
VerticalTransform
public class VerticalTransformSubset extends VerticalTransformImpl
A subset of a vertical transform.
-
-
Field Summary
-
Fields inherited from class ucar.unidata.geoloc.vertical.VerticalTransformImpl
units
-
-
Constructor Summary
Constructors Constructor Description VerticalTransformSubset(VerticalTransform original, Range t_range, Range z_range, Range y_range, Range x_range)
Create a subset of an existing VerticalTransform
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 pointboolean
isTimeDependent()
Get whether this coordinate is time dependent.-
Methods inherited from class ucar.unidata.geoloc.vertical.VerticalTransformImpl
getParameterBooleanValue, getParameterStringValue, getTimeDimension, getUnitString, readArray, subset
-
-
-
-
Constructor Detail
-
VerticalTransformSubset
public VerticalTransformSubset(VerticalTransform original, Range t_range, Range z_range, Range y_range, Range x_range)
Create a subset of an existing VerticalTransform- Parameters:
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 it
-
-
Method Detail
-
getCoordinateArray
public ArrayDouble.D3 getCoordinateArray(int subsetIndex) throws IOException, InvalidRangeException
Description copied from class:VerticalTransformImpl
Get the 3D vertical coordinate array for this time step.- Specified by:
getCoordinateArray
in interfaceVerticalTransform
- Specified by:
getCoordinateArray
in classVerticalTransformImpl
- Parameters:
subsetIndex
- the time index. Ignored if !isTimeDependent().- Returns:
- vertical coordinate array
- Throws:
IOException
- problem reading the 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- 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_
-
isTimeDependent
public boolean isTimeDependent()
Description copied from class:VerticalTransformImpl
Get whether this coordinate is time dependent.- Specified by:
isTimeDependent
in interfaceVerticalTransform
- Overrides:
isTimeDependent
in classVerticalTransformImpl
- Returns:
- true if time dependent
-
-