ucar.unidata.geoloc.vertical
Class VerticalTransformSubset

java.lang.Object
  extended by ucar.unidata.geoloc.vertical.VerticalTransformImpl
      extended by ucar.unidata.geoloc.vertical.VerticalTransformSubset
All Implemented Interfaces:
VerticalTransform

public class VerticalTransformSubset
extends VerticalTransformImpl

A subset of a vertical transform.

Author:
Unidata Development Team

Field Summary
 
Fields inherited from class ucar.unidata.geoloc.vertical.VerticalTransformImpl
units
 
Constructor Summary
VerticalTransformSubset(VerticalTransform original, Range t_range, Range z_range, Range y_range, Range x_range)
          Create a subset of an existing VerticalTransform
 
Method Summary
 ArrayDouble.D3 getCoordinateArray(int subsetIndex)
          Get the 3D vertical coordinate array for this time step.
 boolean isTimeDependent()
          Get whether this coordinate is time dependent.
 
Methods inherited from class ucar.unidata.geoloc.vertical.VerticalTransformImpl
getParameterBooleanValue, getParameterStringValue, getTimeDimension, getUnitString, readArray, subset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 this
t_range - subset the time dimension, or null if you want all of it
z_range - subset the vertical dimension, or null if you want all of it
y_range - subset the y dimension, or null if you want all of it
x_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 interface VerticalTransform
Specified by:
getCoordinateArray in class VerticalTransformImpl
Parameters:
subsetIndex - the time index. Ignored if !isTimeDependent().
Returns:
vertical coordinate array
Throws:
IOException - problem reading the data
InvalidRangeException - _more_

isTimeDependent

public boolean isTimeDependent()
Description copied from class: VerticalTransformImpl
Get whether this coordinate is time dependent.

Specified by:
isTimeDependent in interface VerticalTransform
Overrides:
isTimeDependent in class VerticalTransformImpl
Returns:
true if time dependent


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.