ucar.visad.quantities
Class AirPressure

java.lang.Object
  extended by ucar.visad.quantities.Quantity
      extended by ucar.visad.quantities.ScalarQuantity
          extended by ucar.visad.quantities.Pressure
              extended by ucar.visad.quantities.AirPressure
Direct Known Subclasses:
SaturationPointPressure

public class AirPressure
extends Pressure

Provides support for the quantity of air pressure.

Version:
$Id: AirPressure.java,v 1.16 2006/10/12 19:22:19 dmurray Exp $
Author:
Steven R. Emmerson

Nested Class Summary
static class AirPressure.AirPressureCoordinateSystem
          Provides support for a Pressure <-> Altitude coordinate system transformation.
static class AirPressure.StandardAtmosphereCoordinateSystem
          The class for the standard atmosphere converion from altitude to pressure
 
Constructor Summary
protected AirPressure(String name)
          Constructs from a name.
 
Method Summary
static Data fromAltitude(Data altitude)
          Converts altitude to pressure.
static RealTupleType getRealTupleType()
          Obtains the RealTupleType associated with this class.
static RealType getRealType()
          Obtains the RealType associated with this class.
static AirPressure.AirPressureCoordinateSystem getStandardAtmosphereCS()
          Returns a coordinate system transformation for the Standard Atmosphere.
static Data toAltitude(Data pressure)
          Converts pressure to altitude.
 
Methods inherited from class ucar.visad.quantities.ScalarQuantity
getRealType, getRealType, realType
 
Methods inherited from class ucar.visad.quantities.Quantity
realTupleType, setRealTupleType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AirPressure

protected AirPressure(String name)
               throws VisADException
Constructs from a name. The resulting, associated RealTupleType has a CoordinateSystem that is based on the Standard Atmosphere with a reference RealTupleType of Altitude. It also has a default domain set that is a SingletonSet of one standard atmosphere (i.e. 1013.25 hPa).

Parameters:
name - The name for the quantity.
Throws:
VisADException - Couldn't create necessary VisAD object.
Method Detail

getStandardAtmosphereCS

public static AirPressure.AirPressureCoordinateSystem getStandardAtmosphereCS()
                                                                       throws VisADException
Returns a coordinate system transformation for the Standard Atmosphere.

Returns:
A coordinate system transformation for the Standard Atmosphere.
Throws:
VisADException - if a core VisAD failure occurs.

getRealType

public static RealType getRealType()
                            throws VisADException
Obtains the RealType associated with this class.

Returns:
The RealType associated with this class.
Throws:
VisADException - Couldn't perform necessary VisAD operation.

getRealTupleType

public static RealTupleType getRealTupleType()
                                      throws VisADException
Obtains the RealTupleType associated with this class.

Returns:
The RealTupleType associated with this class.
Throws:
VisADException - Couldn't perform necessary VisAD operation.

toAltitude

public static Data toAltitude(Data pressure)
                       throws VisADException
Converts pressure to altitude.

Parameters:
pressure - A pressure data object.
Returns:
The corresponding altitude data object.
Throws:
VisADException - if a core VisAD failure occurs.

fromAltitude

public static Data fromAltitude(Data altitude)
                         throws VisADException
Converts altitude to pressure.

Parameters:
altitude - A altitude data object.
Returns:
The corresponding pressure data object.
Throws:
VisADException - if a core VisAD failure occurs.