Package ucar.unidata.view.sounding
Class CapeCell
java.lang.Object
ucar.unidata.view.sounding.ComputeCell
ucar.unidata.view.sounding.EnergyFeatureCell
ucar.unidata.view.sounding.CapeCell
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
ConstructorsConstructorDescriptionCapeCell
(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
Methods inherited from class ucar.unidata.view.sounding.ComputeCell
clean, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toString
-
Constructor Details
-
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 Details
-
compute
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 classComputeCell
- 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; anddatums[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.
-