Package ucar.unidata.view.sounding
Class ProfileFeatureCell
java.lang.Object
ucar.unidata.view.sounding.ComputeCell
ucar.unidata.view.sounding.ProfileFeatureCell
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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProfileFeatureCell
(String name, DataReference buoyProfileRef) Constructs from data references. -
Method Summary
Modifier and TypeMethodDescriptionprotected static final 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
-
Field Details
-
noData
The output "missing data" value.
-
-
Constructor Details
-
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 Details
-
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.
-