ucar.unidata.view.sounding
Class EnergyProfileCell

java.lang.Object
  extended by ucar.unidata.view.sounding.ComputeCell
      extended by ucar.unidata.view.sounding.EnergyProfileCell

public final class EnergyProfileCell
extends ComputeCell

Computes the massic energy profile of an atmospheric buoyancy-profile.

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

Constructor Summary
EnergyProfileCell(DataReference buoyProfileRef)
          Constructs from references to the buoyancy profile.
 
Method Summary
protected  Data compute(Data[] datums)
          Computes the (AirPressure -> MassicEnergy) profile from an (AirPressure -> MassicVolume) profile.
 
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

EnergyProfileCell

public EnergyProfileCell(DataReference buoyProfileRef)
                  throws VisADException,
                         RemoteException
Constructs from references to the buoyancy profile.

Parameters:
buoyProfileRef - The 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 (AirPressure -> MassicEnergy) profile from an (AirPressure -> MassicVolume) profile.

Specified by:
compute in class ComputeCell
Parameters:
datums - The input data in the same order as during construction. datums[0] is the (AirPressure -> MassicVolume) buoyancy profile.
Returns:
The corresponding (AirPressure -> MassicEnergy) 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.