ucar.unidata.view.sounding
Class DewPointExtractorCell

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

public final class DewPointExtractorCell
extends ComputeCell

Extracts the dew-point temperature from a dew-point temperature profile at a given pressure.

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

Constructor Summary
DewPointExtractorCell(DataReference dewProfileRef, DataReference presRef)
          Constructs from input data cells.
 
Method Summary
protected  Data compute(Data[] datums)
          Computes the output dew-point.
 
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

DewPointExtractorCell

public DewPointExtractorCell(DataReference dewProfileRef,
                             DataReference presRef)
                      throws VisADException,
                             RemoteException
Constructs from input data cells.

Parameters:
dewProfileRef - The input dew-point profile reference.
presRef - The input 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 dew-point.

Specified by:
compute in class ComputeCell
Parameters:
datums - The input data in the same order as during construction. datums[0] is the dew-point profile and datums[1] is the pressure at which to interpolate the dew-point profile.
Returns:
The dew-point of the profile at the given pressure.
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.