ucar.unidata.view.sounding
Class VirtualTemperatureProfileCell
java.lang.Object
ucar.unidata.view.sounding.ComputeCell
ucar.unidata.view.sounding.VirtualTemperatureProfileCell
public final class VirtualTemperatureProfileCell
- extends ComputeCell
Computes a profile of virtual temperature from moisture data and a profile
of temperature. The domain of the output profile will be the domain of
the temperature profile.
- Version:
- $Revision: 1.6 $ $Date: 2005/05/13 18:33:40 $
- Author:
- Steven R. Emmerson
|
Method Summary |
protected Data |
compute(Data[] datums)
Computes the (AirPressure -> VirtualTemperature) profile corresponding to
an (AirPressure -> AirTemperature) profile and a moisture profile. |
VirtualTemperatureProfileCell
public VirtualTemperatureProfileCell(DataReference tempProfileRef,
DataReference moistRef)
throws VisADException,
RemoteException
- Constructs from data references. The temperature argument should
refer to a
Field and the moisture argument should refer to
either a Field or a Real. The
Field's rangetype or the Real's
RealType should be compatible with either
DewPoint.getRealType() or WaterVaporMixingRatio.getRealType().
- Parameters:
tempProfileRef - The input temperature profile reference.moistRef - The input moisture reference.
- Throws:
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
compute
protected Data compute(Data[] datums)
throws TypeException,
VisADException,
RemoteException
- Computes the (AirPressure -> VirtualTemperature) profile corresponding to
an (AirPressure -> AirTemperature) profile and a moisture profile. The
moisture profile may be either (AirPressure -> DewPoint) or (AirPressure
-> WaterVaporMixingRatio).
- Specified by:
compute in class ComputeCell
- Parameters:
datums - The input data corresponding to the data
references of construction: datums[0]
is the temperature profile and
datums[1] is the moisture
profile.
- Returns:
- The corresponding virtual temperature
profile.
- Throws:
ClassCastException - if an input data reference has the wrong
type of data object.
TypeException - if a VisAD data object has the wrong type.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.