Package ucar.unidata.view.sounding
Class VirtualTemperatureProfileCell
java.lang.Object
ucar.unidata.view.sounding.ComputeCell
ucar.unidata.view.sounding.VirtualTemperatureProfileCell
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
-
Constructor Summary
ConstructorsConstructorDescriptionVirtualTemperatureProfileCell
(DataReference tempProfileRef, DataReference moistRef) Constructs from data references. -
Method Summary
Methods inherited from class ucar.unidata.view.sounding.ComputeCell
clean, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toString
-
Constructor Details
-
VirtualTemperatureProfileCell
public VirtualTemperatureProfileCell(DataReference tempProfileRef, DataReference moistRef) throws VisADException, RemoteException Constructs from data references. The temperature argument should refer to aField
and the moisture argument should refer to either aField
or aReal
. TheField
's rangetype or theReal
'sRealType
should be compatible with eitherDewPoint.getRealType()
orWaterVaporMixingRatio.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.
-
-
Method Details
-
compute
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 classComputeCell
- Parameters:
datums
- The input data corresponding to the data references of construction:datums[0]
is the temperature profile anddatums[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.
-