Package ucar.unidata.view.sounding
Class LclTemperatureCell
java.lang.Object
ucar.unidata.view.sounding.ComputeCell
ucar.unidata.view.sounding.LclTemperatureCell
Computes the condensation temperature at the lifting condensation level
(LCL).
- Version:
- $Revision: 1.5 $ $Date: 2005/05/13 18:33:32 $
- Author:
- Steven R. Emmerson
-
Constructor Summary
ConstructorsConstructorDescriptionLclTemperatureCell
(DataReference ratioRef, DataReference initPresRef, DataReference initTempRef) Constructs from data references for the water-vapor mixing-ratio and the initial pressure and temperature. -
Method Summary
Methods inherited from class ucar.unidata.view.sounding.ComputeCell
clean, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toString
-
Constructor Details
-
LclTemperatureCell
public LclTemperatureCell(DataReference ratioRef, DataReference initPresRef, DataReference initTempRef) throws VisADException, RemoteException Constructs from data references for the water-vapor mixing-ratio and the initial pressure and temperature.- Parameters:
ratioRef
- The input water-vapor mixing-ratio reference.initPresRef
- The input initial pressure reference.initTempRef
- The input initial temperature reference.- Throws:
VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
-
Method Details
-
compute
Computes the output condensation temperature (the temperature at the LCL) from the water-vapor mixing-ratio and the initial pressure and temperature.- Specified by:
compute
in classComputeCell
- Parameters:
datums
- The input data in the same order as during construction:datums[0]
is the water-vapor mixing-ratio;datums[1]
is the initial pressure; anddatums[2]
is the initial temperature.- Returns:
- The corresponding condensation temperature.
- 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.
-