ucar.unidata.view.sounding
Class DryTrajectoryCell

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

public class DryTrajectoryCell
extends ComputeCell

Computes the trajectory of a parcel of air lifted pseudo-adiabatically from an initial level to the LCL.

Version:
$Revision: 1.6 $ $Date: 2005/05/13 18:33:30 $
Author:
Steven R. Emmerson

Constructor Summary
DryTrajectoryCell(DataReference initPresRef, DataReference initTempRef, DataReference lclPresRef)
          Constructs from data references.
 
Method Summary
protected  Data compute(Data[] datums)
          Computes the output lifted-parcel trajectory from the parcel's initial pressure and temperature, and the pressure at the Lifting Condensation Level (LCL).
 
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

DryTrajectoryCell

public DryTrajectoryCell(DataReference initPresRef,
                         DataReference initTempRef,
                         DataReference lclPresRef)
                  throws VisADException,
                         RemoteException
Constructs from data references.

Parameters:
initPresRef - The input initial pressure reference.
initTempRef - The input initial temperature reference.
lclPresRef - The input LCL pressure 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 lifted-parcel trajectory from the parcel's initial pressure and temperature, and the pressure at the Lifting Condensation Level (LCL).

Specified by:
compute in class ComputeCell
Parameters:
datums - The input data in the same order as during construction. datums[0] is the initial pressure; datums[1] is the initial, in-situ temperature; and datums[2] is the LCL pressure.
Returns:
The corresponding parcel path as a (AirPressure -> AirTemperature) Field.
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.