ucar.unidata.view.sounding
Class CapeCell
java.lang.Object
ucar.unidata.view.sounding.ComputeCell
ucar.unidata.view.sounding.EnergyFeatureCell
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
|
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). |
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.
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.