ucar.unidata.view.sounding
Class LclTemperatureCell

java.lang.Object
  extended by ucar.unidata.view.sounding.ComputeCell
      extended by ucar.unidata.view.sounding.LclTemperatureCell

public final class LclTemperatureCell
extends ComputeCell

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
LclTemperatureCell(DataReference ratioRef, DataReference initPresRef, DataReference initTempRef)
          Constructs from data references for the water-vapor mixing-ratio and the initial pressure and temperature.
 
Method Summary
protected  Data compute(Data[] datums)
          Computes the output condensation temperature (the temperature at the LCL) from the water-vapor mixing-ratio and the initial pressure and temperature.
 
Methods inherited from class ucar.unidata.view.sounding.ComputeCell
clean, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

compute

protected Data compute(Data[] datums)
                throws TypeException,
                       VisADException,
                       RemoteException
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 class ComputeCell
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; and datums[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.