ucar.unidata.view.sounding
Class LnbCell

java.lang.Object
  extended by ucar.unidata.view.sounding.ComputeCell
      extended by ucar.unidata.view.sounding.ProfileFeatureCell
          extended by ucar.unidata.view.sounding.LnbCell

public final class LnbCell
extends ProfileFeatureCell

Computes the level of neutral buoyancy (LNB) from an atmospheric buoyancy-profile.

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

Field Summary
 
Fields inherited from class ucar.unidata.view.sounding.ProfileFeatureCell
noData
 
Constructor Summary
LnbCell(DataReference buoyProfileRef)
          Constructs from data references.
 
Method Summary
protected  Data compute(Data[] datums)
          Computes the pressure at the Level of Neutral Buoyancy (LNB) of a (AirPressure -> MassicVolume) buoyancy profile.
 
Methods inherited from class ucar.unidata.view.sounding.ProfileFeatureCell
interpolatePres
 
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

LnbCell

public LnbCell(DataReference buoyProfileRef)
        throws VisADException,
               RemoteException
Constructs from data references.

Parameters:
buoyProfileRef - The input buoyancy profile 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 pressure at the Level of Neutral Buoyancy (LNB) of a (AirPressure -> MassicVolume) buoyancy profile.

Specified by:
compute in class ComputeCell
Parameters:
datums - The input data in the same order as during construction: datums[0] is the buoyancy profile.
Returns:
The pressure at the LNB of the buoyancy profile.
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.