Class LclTemperatureCell

java.lang.Object
ucar.unidata.view.sounding.ComputeCell
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 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

      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.