ucar.unidata.view.sounding
Class CinCell

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

public final class CinCell
extends EnergyFeatureCell

Computes the Convective INhibition (CIN) from a profile of massic energy, the initial release level, and the level of free convection.

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

Field Summary
 
Fields inherited from class ucar.unidata.view.sounding.EnergyFeatureCell
noData
 
Constructor Summary
CinCell(DataReference energyProfileRef, DataReference initLevRef, DataReference lfcRef)
          Constructs from references to the massic energy profile, the iniital level, and the Level of Free Convection (LFC).
 
Method Summary
protected  Data compute(Data[] datums)
          Computes the output Convective INhibition (CIN) from a massic energy profile, the parcel's initial pressure, and the pressure at the level of free convection (LFC).
 
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

CinCell

public CinCell(DataReference energyProfileRef,
               DataReference initLevRef,
               DataReference lfcRef)
        throws VisADException,
               RemoteException
Constructs from references to the massic energy profile, the iniital level, and the Level of Free Convection (LFC).

Parameters:
energyProfileRef - The massic energy profile reference.
initLevRef - The initial level reference.
lfcRef - The LFC 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 INhibition (CIN) from a massic energy profile, the parcel's initial pressure, and the pressure at the level of free convection (LFC).

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 initial pressure; and datums[2] is the LFC pressure.
Returns:
The corresponding CIN.
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.