ucar.unidata.view.sounding
Class CapeCell

java.lang.Object
  extended by ucar.unidata.view.sounding.ComputeCell
      extended by ucar.unidata.view.sounding.EnergyFeatureCell
          extended by ucar.unidata.view.sounding.CapeCell

public final class CapeCell
extends EnergyFeatureCell

Computes the Convective Available Potential Energy (CAPE) from a profile of massic energy.

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

Field Summary
 
Fields inherited from class ucar.unidata.view.sounding.EnergyFeatureCell
noData
 
Constructor Summary
CapeCell(DataReference energyProfileRef, DataReference lfcRef, DataReference lnbRef)
          Constructs from references to the massic energy profile, the Level of Free convection (LFC) and the Level of Neutral Buoyancy (LNB).
 
Method Summary
protected  Data compute(Data[] datums)
          Computes the output Convective Available Potential Energy (CAPE) from the massic energy profile, level of free convection (LFC), and level of neutral buoyancy (LNB).
 
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

CapeCell

public CapeCell(DataReference energyProfileRef,
                DataReference lfcRef,
                DataReference lnbRef)
         throws VisADException,
                RemoteException
Constructs from references to the massic energy profile, the Level of Free convection (LFC) and the Level of Neutral Buoyancy (LNB).

Parameters:
energyProfileRef - The massic energy profile reference.
lfcRef - The LFC reference.
lnbRef - The LNB 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 output Convective Available Potential Energy (CAPE) from the massic energy profile, level of free convection (LFC), and level of neutral buoyancy (LNB).

Specified by:
compute in class ComputeCell
Parameters:
datums - The input data in the same order as during construction. datums[0] is the massic energy profile; datums[1] is the LFC pressure; and datums[2] is the LNB pressure.
Returns:
The corresponding CAPE.
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.