ucar.unidata.view.sounding
Class AirTemperatureCell
java.lang.Object
ucar.unidata.view.sounding.ComputeCell
ucar.unidata.view.sounding.AirTemperatureCell
public final class AirTemperatureCell
- extends ComputeCell
Computes the in-situ air temperature from pressure and temperature.
- Version:
- $Revision: 1.6 $ $Date: 2005/05/13 18:33:23 $
- Author:
- Steven R. Emmerson
|
Method Summary |
protected Data |
compute(Data[] datums)
Computes the output air temperature. |
AirTemperatureCell
public AirTemperatureCell(DataReference presRef,
DataReference potTempRef,
Data noData)
throws VisADException,
RemoteException
- Constructs from data references.
- Parameters:
presRef - The pressure reference.potTempRef - The potential temperature reference.noData - The missing data value.
- Throws:
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
compute
protected Data compute(Data[] datums)
throws TypeException,
VisADException,
RemoteException
- Computes the output air temperature.
- Specified by:
compute in class ComputeCell
- Parameters:
datums - The input data. datums[0] is
the input pressure data and datums[1]
is the input potential temperature
data.
- Returns:
- The in-situ air 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.