ucar.unidata.view.sounding
Class ProfileFeatureCell

java.lang.Object
  extended by ucar.unidata.view.sounding.ComputeCell
      extended by ucar.unidata.view.sounding.ProfileFeatureCell
Direct Known Subclasses:
LfcCell, LnbCell

public abstract class ProfileFeatureCell
extends ComputeCell

Computes the level of a feature from an atmospheric buoyancy-profile.

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

Field Summary
protected static Real noData
          The output "missing data" value.
 
Constructor Summary
ProfileFeatureCell(String name, DataReference buoyProfileRef)
          Constructs from data references.
 
Method Summary
protected static Real interpolatePres(double topPres, double topBuoy, double botPres, double botBuoy, Unit presUnit)
          Interpolates the pressure at zero buoyancy from bracketing pressures and buoyancies.
 
Methods inherited from class ucar.unidata.view.sounding.ComputeCell
clean, compute, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

noData

protected static final Real noData
The output "missing data" value.

Constructor Detail

ProfileFeatureCell

public ProfileFeatureCell(String name,
                          DataReference buoyProfileRef)
                   throws VisADException,
                          RemoteException
Constructs from data references. The input buoyancy profile must be ascending.

Parameters:
name - The name of the cell.
buoyProfileRef - The input buoyancy profile reference.
Throws:
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
Method Detail

interpolatePres

protected static final Real interpolatePres(double topPres,
                                            double topBuoy,
                                            double botPres,
                                            double botBuoy,
                                            Unit presUnit)
                                     throws VisADException
Interpolates the pressure at zero buoyancy from bracketing pressures and buoyancies. The buoyancies must not have the same sign.

Parameters:
topPres - The upper pressure.
topBuoy - The buoyancy at the upper pressure.
botPres - The lower pressure.
botBuoy - The buoyancy at the lower pressure.
presUnit - The unit of pressure.
Returns:
The interpolated pressure at zero buoyancy.
Throws:
VisADException - if a VisAD failure occurs.