public final class LclTemperatureCell extends ComputeCell
Constructor and Description |
---|
LclTemperatureCell(visad.DataReference ratioRef,
visad.DataReference initPresRef,
visad.DataReference initTempRef)
Constructs from data references for the water-vapor mixing-ratio and the
initial pressure and temperature.
|
Modifier and Type | Method and Description |
---|---|
protected visad.Data |
compute(visad.Data[] datums)
Computes the output condensation temperature (the temperature at the LCL)
from the water-vapor mixing-ratio and the initial pressure and
temperature.
|
clean, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toString
public LclTemperatureCell(visad.DataReference ratioRef, visad.DataReference initPresRef, visad.DataReference initTempRef) throws visad.VisADException, java.rmi.RemoteException
ratioRef
- The input water-vapor mixing-ratio reference.initPresRef
- The input initial pressure reference.initTempRef
- The input initial temperature reference.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.protected visad.Data compute(visad.Data[] datums) throws visad.TypeException, visad.VisADException, java.rmi.RemoteException
compute
in class ComputeCell
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.java.lang.ClassCastException
- if an input data reference has the wrong
type of data object.visad.TypeException
- if a VisAD data object has the wrong type.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.