Class 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
  • Constructor Details

    • 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 Details

    • 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.