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