Package ucar.visad.quantities
Class WaterVaporMixingRatio
java.lang.Object
ucar.visad.quantities.Quantity
ucar.visad.quantities.ScalarQuantity
ucar.visad.quantities.WaterVaporMixingRatio
- Direct Known Subclasses:
SaturationMixingRatio
Provides support for the quantity of saturation mixing-ratio.
Instances are immutable.
- Version:
- $Id: WaterVaporMixingRatio.java,v 1.15 2005/05/13 18:35:45 jeffmc Exp $
- Author:
- Steven R. Emmerson
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
WaterVaporMixingRatio
(String name) Constructs from a name. -
Method Summary
Modifier and TypeMethodDescriptionstatic Data
Creates a water-vapor mixing-ratio data object from specific humiditystatic Data
Creates a water-vapor mixing-ratio data object from data objects for pressure and temperature.static Real
Returns the ratio of the water vapor and dry air gas constants.static RealTupleType
Obtains the RealTupleType associated with this class.static RealType
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
-
Constructor Details
-
WaterVaporMixingRatio
Constructs from a name.- Parameters:
name
- The name for the instance.- Throws:
VisADException
- Couldn't create necessary VisAD object.
-
-
Method Details
-
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.
-
getGasConstantRatio
Returns the ratio of the water vapor and dry air gas constants.- Returns:
- The water vapor to dry air gas constant ratio.
- Throws:
VisADException
- if a core VisAD failure occurs.
-
create
public static Data create(Data pressure, Data temperature) throws TypeException, VisADException, UnitException, RemoteException Creates a water-vapor mixing-ratio data object from data objects for pressure and temperature.- Parameters:
pressure
- The pressure data object.temperature
- The temperature data object. If the in-situ temperature is used, then the returned object is the saturation mixing ratio. If the dew-point temperature is used, then the returned object is the actual mixing-ratio.- Returns:
- Water vapor mixing-ratio or saturation
mixing-ratio depending on the type of
temperature
. - Throws:
TypeException
- At least one argument has incorrect type.UnitException
- Unit conversion failure.VisADException
- Couldn't create necessary VisAD object.RemoteException
- Java RMI failure.
-
create
public static Data create(Data specificHumidity) throws TypeException, VisADException, UnitException, RemoteException Creates a water-vapor mixing-ratio data object from specific humidity- Parameters:
specificHumidity
- The specific humidity data object.- Returns:
- Water vapor mixing-ratio or saturation
mixing-ratio depending on the type of
temperature
. - Throws:
TypeException
- At least one argument has incorrect type.UnitException
- Unit conversion failure.VisADException
- Couldn't create necessary VisAD object.RemoteException
- Java RMI failure.
-