ucar.visad.quantities
Class AirDensity

java.lang.Object
  extended by ucar.visad.quantities.Quantity
      extended by ucar.visad.quantities.ScalarQuantity
          extended by ucar.visad.quantities.Density
              extended by ucar.visad.quantities.AirDensity

public final class AirDensity
extends Density

Provides support for the quantity of atmospheric density.

Version:
$Id: AirDensity.java,v 1.11 2005/05/13 18:35:37 jeffmc Exp $
Author:
Steven R. Emmerson

Method Summary
static Data create(Data pressure, Data temperature)
          Creates an AirDensity data object from data objects for Pressure, and temperature
static Data create(Data pressure, Data inSituAirTemperature, Data dewPoint)
          Creates an AirDensity data object from data objects for Pressure, InSituAirTemperature, and DewPoint.
static FlatField create(FlatField inputField)
          Creates an AirPressure -> AirDensity field from an Pressure -> (InSituAirTemperature, DewPoint) field.
static RealTupleType getRealTupleType()
          Obtains the RealTupleType associated with this class.
static RealType getRealType()
          Obtains the RealType associated with this class.
 
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
 

Method Detail

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.

create

public static Data create(Data pressure,
                          Data inSituAirTemperature,
                          Data dewPoint)
                   throws TypeException,
                          UnimplementedException,
                          VisADException,
                          RemoteException
Creates an AirDensity data object from data objects for Pressure, InSituAirTemperature, and DewPoint.

Parameters:
pressure - A Pressure data object.
inSituAirTemperature - An InSituAirTemperature data object.
dewPoint - A DewPoint data object.
Returns:
The AirDensity data object computed from the arguments. The type of the object will be that of the arguments after standard promotion.
Throws:
TypeException - At least one argument has wrong type.
UnimplementedException - Necessary operation not yet implemented.
VisADException - Couldn't create necessary VisAD object.
RemoteException - Java RMI failure.
See Also:
VisADMath

create

public static Data create(Data pressure,
                          Data temperature)
                   throws TypeException,
                          UnimplementedException,
                          VisADException,
                          RemoteException
Creates an AirDensity data object from data objects for Pressure, and temperature

Parameters:
pressure - A Pressure data object.
temperature - A temperature data object. If the in-situ temperature is used, then the returned density will be that for dry air; if the virtual temperature is used, then the returned density will be the actual density.
Returns:
The AirDensity data object computed from the arguments. The type of the object will be that of the arguments after standard promotion.
Throws:
TypeException - At least one argument has wrong type.
UnimplementedException - Necessary operation not yet implemented.
VisADException - Couldn't create necessary VisAD object.
RemoteException - Java RMI failure.
See Also:
VisADMath

create

public static FlatField create(FlatField inputField)
                        throws TypeException,
                               UnimplementedException,
                               VisADException,
                               RemoteException
Creates an AirPressure -> AirDensity field from an Pressure -> (InSituAirTemperature, DewPoint) field.

Parameters:
inputField - An Pressure -> (InSituAirTemperature, DewPoint) field.
Returns:
The (AirPressure -> AirDensity) field corresponding to the input field.
Throws:
TypeException - At least one argument has wrong type.
UnimplementedException - Necessary operation not yet implemented.
VisADException - Couldn't create necessary VisAD object.
RemoteException - Java RMI failure.