Package ucar.visad.quantities
Class AirPressure
java.lang.Object
ucar.visad.quantities.Quantity
ucar.visad.quantities.ScalarQuantity
ucar.visad.quantities.Pressure
ucar.visad.quantities.AirPressure
- Direct Known Subclasses:
SaturationPointPressure
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
Nested ClassesModifier and TypeClassDescriptionstatic class
Provides support for a Pressure invalid input: '<'-> Altitude coordinate system transformation.static class
The class for the standard atmosphere converion from altitude to pressure -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Data
fromAltitude
(Data altitude) Converts altitude to pressure.static RealTupleType
Obtains the RealTupleType associated with this class.static RealType
Obtains the RealType associated with this class.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
-
Constructor Details
-
AirPressure
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 Details
-
getStandardAtmosphereCS
public static AirPressure.AirPressureCoordinateSystem getStandardAtmosphereCS() throws VisADExceptionReturns 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
Obtains the RealType associated with this class.- Returns:
- The RealType associated with this class.
- Throws:
VisADException
- Couldn't perform necessary VisAD operation.
-
getRealTupleType
Obtains the RealTupleType associated with this class.- Returns:
- The RealTupleType associated with this class.
- Throws:
VisADException
- Couldn't perform necessary VisAD operation.
-
toAltitude
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
Converts altitude to pressure.- Parameters:
altitude
- A altitude data object.- Returns:
- The corresponding pressure data object.
- Throws:
VisADException
- if a core VisAD failure occurs.
-