Package ucar.unidata.view.sounding
Class BuoyancyProfileCell
java.lang.Object
ucar.unidata.view.sounding.ComputeCell
ucar.unidata.view.sounding.BuoyancyProfileCell
Computes a buoyancy profile from profiles of parcel and environmental densities. The buoyancy is defined as the massic volume (alias "specific volume" or "volume per mass") of the parcel minus the massic volume of the environment. Positive buoyancy corresponds to an upward force on the parcel.
This class is thread-compatible but not thread-safe: clients should synchronize concurrent access to instances of this class.
- Version:
- $Revision: 1.8 $ $Date: 2005/05/13 18:33:25 $
- Author:
- Steven R. Emmerson
-
Constructor Summary
ConstructorsConstructorDescriptionBuoyancyProfileCell
(DataReference envDenProRef, DataReference parDenProRef) Constructs from input and output data references. -
Method Summary
Methods inherited from class ucar.unidata.view.sounding.ComputeCell
clean, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toString
-
Constructor Details
-
BuoyancyProfileCell
public BuoyancyProfileCell(DataReference envDenProRef, DataReference parDenProRef) throws VisADException, RemoteException Constructs from input and output data references.- Parameters:
envDenProRef
- The input environmental density profile reference.parDenProRef
- The input parcel density profile reference.- Throws:
VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
-
Method Details
-
compute
Computes the output buoyancy-profile.- Specified by:
compute
in classComputeCell
- Parameters:
datums
- The input data.datums[0]
is the environment's air density profile;datums[1]
is the parcel's air density profile.- Returns:
- The corresponding boyancy profile as the difference in massic volumes of the two input profiles.
- 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.
-