Package ucar.unidata.view.sounding
Class CapeCalculator
java.lang.Object
ucar.unidata.view.sounding.CapeCalculator
Provides support for calculating Convective Available Potential Energy (CAPE)
and Convective Inhibition (CIN) values.
- Version:
- $Id: CapeCalculator.java,v 1.6 2005/05/13 18:33:25 jeffmc Exp $
- Author:
- Steven R. Emmerson
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a PropertyChangeListener.voidaddPropertyChangeListener(String name, PropertyChangeListener listener) Adds a PropertyChangeListener for a named property.getCAPE()Returns the value of the CAPE property.voidRemoves a PropertyChangeListener.voidremovePropertyChangeListener(String name, PropertyChangeListener listener) Removes a PropertyChangeListener for a named property.voidSets the CAPE property from profiles for temperature and dew-point and the trajectory of the saturated portion of a lifted parcel.protected voidSets the CAPE property.
-
Field Details
-
CAPE
The name of the Convective Available Potential Energy (CAPE) property. -
CIN
The name of the Convective Inhibition (CIN) property.
-
-
Constructor Details
-
CapeCalculator
public CapeCalculator()Constructs from nothing.
-
-
Method Details
-
addPropertyChangeListener
Adds a PropertyChangeListener. The listener will be added to both the CAPE and CIN listener-lists.- Parameters:
listener- The PropertyChangeListener to be added.
-
addPropertyChangeListener
Adds a PropertyChangeListener for a named property.- Parameters:
name- The name of the property.listener- The PropertyChangeListener to be added.
-
removePropertyChangeListener
Removes a PropertyChangeListener. The listener will be removed from both the CAPE and CIN listener-lists.- Parameters:
listener- The PropertyChangeListener to be removed.
-
removePropertyChangeListener
Removes a PropertyChangeListener for a named property.- Parameters:
name- The name of the property.listener- The PropertyChangeListener to be removed.- Throws:
NullPointerException- if the name isnull.
-
setCape
public void setCape(Field temperatureProfile, Field dewPointProfile, Field wetTrajectory) throws TypeException, VisADException, RemoteException Sets the CAPE property from profiles for temperature and dew-point and the trajectory of the saturated portion of a lifted parcel.- Parameters:
temperatureProfile- The temperature profile.dewPointProfile- The dew-point profile.wetTrajectory- The trajectory of the saturated portion of the lifted parcel.- Throws:
TypeException- Somthing has the wrong type.VisADException- VisAD failure.RemoteException- Java RMI failure.
-
setCape
Sets the CAPE property.- Parameters:
newCape- The new value.
-
getCAPE
Returns the value of the CAPE property.- Returns:
- The value of the CAPE property.
-