ucar.visad.quantities
Class PseudoAdiabaticLapseRate

java.lang.Object
  extended by ucar.visad.quantities.Quantity
      extended by ucar.visad.quantities.ScalarQuantity
          extended by ucar.visad.quantities.PseudoAdiabaticLapseRate

public class PseudoAdiabaticLapseRate
extends ScalarQuantity

Provides support for the latent heat of evaporation.

Version:
$Id: PseudoAdiabaticLapseRate.java,v 1.12 2005/05/13 18:35:42 jeffmc Exp $
Author:
Steven R. Emmerson

Field Summary
protected static Real epsilonL
          (waterVaporMolecularWeight / dryAirMolecularWeight) latentHeatOfEvaporation
protected static Real epsilonL2OverCSubPRSubD
          ((waterVaporMolecularWeight / dryAirMolecularWeight) latentHeatOfEvaporation.pow(2)) (dryAirSpecificHeatCapacity * dryAirGasConstant)
protected static Real lOverRSubD
          The latent heat of evaporation divided by the dry air gas constant.
protected static Real one
          The dimensionless quantity one.
 
Method Summary
static Data create(Data pressure, Data temperature)
          Creates a pseudo-adiabatic lapse-rate data object from data objects for in-situ air pressure and temperature.
static RealType getRealType()
          Obtains the RealType associated with this class.
static void main(String[] args)
          Tests 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
 

Field Detail

one

protected static Real one
The dimensionless quantity one.


lOverRSubD

protected static Real lOverRSubD
The latent heat of evaporation divided by the dry air gas constant.


epsilonL

protected static Real epsilonL
(waterVaporMolecularWeight / dryAirMolecularWeight) latentHeatOfEvaporation


epsilonL2OverCSubPRSubD

protected static Real epsilonL2OverCSubPRSubD
((waterVaporMolecularWeight / dryAirMolecularWeight) latentHeatOfEvaporation.pow(2)) (dryAirSpecificHeatCapacity * dryAirGasConstant)

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.

create

public static Data create(Data pressure,
                          Data temperature)
                   throws TypeException,
                          VisADException,
                          RemoteException
Creates a pseudo-adiabatic lapse-rate data object from data objects for in-situ air pressure and temperature. Reasonable approximations are used.

Parameters:
pressure - The in-situ air pressure data object.
temperature - The in-situ air temperature data object.
Returns:
The lapse-rate data object corresponding to the input arguments.
Throws:
TypeException - An input argument has wrong type.
VisADException - Couldn't create necessary VisAD object.
RemoteException - Java RMI failure.

main

public static void main(String[] args)
                 throws Exception
Tests this class.

Parameters:
args - Arguments, Ignored.
Throws:
Exception - Something went wrong.