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 TypeMethodDescriptionvoid
Adds a PropertyChangeListener.void
addPropertyChangeListener
(String name, PropertyChangeListener listener) Adds a PropertyChangeListener for a named property.getCAPE()
Returns the value of the CAPE property.void
Removes a PropertyChangeListener.void
removePropertyChangeListener
(String name, PropertyChangeListener listener) Removes a PropertyChangeListener for a named property.void
Sets the CAPE property from profiles for temperature and dew-point and the trajectory of the saturated portion of a lifted parcel.protected void
Sets 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.
-