public abstract class VerticalTransformImpl extends java.lang.Object implements VerticalTransform
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
units
unit string
|
Constructor and Description |
---|
VerticalTransformImpl(Dimension timeDim)
Construct a VerticalCoordinate
|
Modifier and Type | Method and Description |
---|---|
abstract ArrayDouble.D3 |
getCoordinateArray(int timeIndex)
Get the 3D vertical coordinate array for this time step.
|
abstract ArrayDouble.D1 |
getCoordinateArray1D(int timeIndex,
int xIndex,
int yIndex)
Get the 1D vertical coordinate array for this time step and point
|
protected boolean |
getParameterBooleanValue(java.util.List<Parameter> params,
java.lang.String name) |
protected java.lang.String |
getParameterStringValue(java.util.List<Parameter> params,
java.lang.String name) |
protected Dimension |
getTimeDimension()
Get the time Dimension
|
java.lang.String |
getUnitString()
Get the unit string for the vertical coordinate.
|
boolean |
isTimeDependent()
Get whether this coordinate is time dependent.
|
protected Array |
readArray(Variable v,
int timeIndex)
Read the data
Array from the variable, at the specified
time index if applicable. |
VerticalTransform |
subset(Range t_range,
Range z_range,
Range y_range,
Range x_range)
Create a subset of this VerticalTransform.
|
public VerticalTransformImpl(Dimension timeDim)
timeDim
- time dimensionpublic abstract ArrayDouble.D3 getCoordinateArray(int timeIndex) throws java.io.IOException, InvalidRangeException
getCoordinateArray
in interface VerticalTransform
timeIndex
- the time index. Ignored if !isTimeDependent().InvalidRangeException
- _more_java.io.IOException
- problem reading the datapublic abstract ArrayDouble.D1 getCoordinateArray1D(int timeIndex, int xIndex, int yIndex) throws java.io.IOException, InvalidRangeException
getCoordinateArray1D
in interface VerticalTransform
timeIndex
- the time index. Ignored if !isTimeDependent().xIndex
- the x indexyIndex
- the y indexjava.io.IOException
- problem reading dataInvalidRangeException
- _more_public java.lang.String getUnitString()
getUnitString
in interface VerticalTransform
public boolean isTimeDependent()
isTimeDependent
in interface VerticalTransform
protected Dimension getTimeDimension()
protected Array readArray(Variable v, int timeIndex) throws java.io.IOException, InvalidRangeException
Array
from the variable, at the specified
time index if applicable. If the variable does not have a time
dimension, the data array will have the same rank as the Variable.
If the variable has a time dimension, the data array will have rank-1.v
- variable to readtimeIndex
- time index, ignored if !isTimeDependent()java.io.IOException
- problem reading dataInvalidRangeException
- _more_public VerticalTransform subset(Range t_range, Range z_range, Range y_range, Range x_range) throws InvalidRangeException
subset
in interface VerticalTransform
t_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 itInvalidRangeException
- if any of the range parameters are illegalprotected java.lang.String getParameterStringValue(java.util.List<Parameter> params, java.lang.String name)
protected boolean getParameterBooleanValue(java.util.List<Parameter> params, java.lang.String name)