ucar.unidata.view.sounding
Class ProfileFeatureCell
java.lang.Object
ucar.unidata.view.sounding.ComputeCell
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. |
|
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. |
noData
protected static final Real noData
- The output "missing data" value.
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.
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.