Package ucar.unidata.view.sounding
Class Sounding
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.CompositeDisplayable
ucar.unidata.view.sounding.Sounding
Provides support for a composite displayable comprising a temperature
profile and a dew-point profile.
- Version:
- $Id: Sounding.java,v 1.30 2006/05/08 21:43:57 dmurray Exp $
- Author:
- Steven R. Emmerson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
The name of the dew-point property.static String
The name of the pressure property.static String
The name of the temperature property.Fields inherited from class ucar.visad.display.CompositeDisplayable
cnt, label
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the temperature property.Returns the dew-point profile.Returns the type of the dew-point quantity.Returns the pressure property.Returns the type of the pressure quantity.Returns the temperature property.Returns the temperature profile.Returns the type of the temperature quantity.void
setConstrainProfiles
(boolean yes) Sets the constrainProfiles property.void
setDewPointField
(Field dewPointField) Sets the dew-point profile.void
Sets the profiles.void
Resets the sounding to the original data.void
setPressure
(Real pressure) Sets the pressure property.void
setTemperatureField
(Field temperatureField) Sets the temperature profile.Methods inherited from class ucar.visad.display.CompositeDisplayable
addConstantMap, addDisplayable, addListDataListener, clearDisplayables, cloneForDisplay, debug, destroy, destroyAll, displayableCount, fireListDataContentsChanged, fireListDataIntervalAdded, fireListDataIntervalRemoved, getAnimationSet, getDisplayable, indexOf, iterator, lastDisplayable, myAddDataReferences, myRemoveDataReferences, removeDisplayable, removeDisplayable, removeListDataListener, setAdjustFlow, setColor, setColorPalette, setColorUnit, setConstantPosition, setDisplay, setDisplayable, setDisplayMaster, setDisplayUnit, setLineWidth, setManipulable, setPointMode, setPointSize, setSelectedRange, setUseFastRendering, setUseTimesInAnimation, setVisible, setVisible, setVisible, toFront, toString
Methods inherited from class ucar.visad.display.Displayable
addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getData, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, hasDataObject, isActive, isUnitCompatible, isVisible, logException, myAddConstantMaps, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setColorPalette, setContourInfo, setDisplayActive, setDisplayInactive, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange
-
Field Details
-
PRESSURE
The name of the pressure property. -
TEMPERATURE
The name of the temperature property. -
DEW_POINT
The name of the dew-point property.
-
-
Constructor Details
-
Sounding
Constructs from a VisAD display. The constrainProfiles property is initiallyfalse
.- Parameters:
display
- The VisAD display.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
-
Method Details
-
setConstrainProfiles
Sets the constrainProfiles property. When this property is set, profile temperatures are constrained to be equal to or greater than their corresponding profile dew-points.- Parameters:
yes
- Whether or not to constrain temperatures to be equal to or greater than corresponding dew-points.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setFields
public void setFields(Field temperatureField, Field dewPointField) throws RemoteException, VisADException Sets the profiles.- Parameters:
temperatureField
- The temperature profile.dewPointField
- The dew-point profile.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setTemperatureField
Sets the temperature profile.- Parameters:
temperatureField
- The temperature profile.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setDewPointField
Sets the dew-point profile.- Parameters:
dewPointField
- The dew-point profile.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getTemperatureField
Returns the temperature profile. NB: Not a copy.- Returns:
- The temperature profile.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getDewPointField
Returns the dew-point profile. NB: Not a copy.- Returns:
- The dew-point profile.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setOriginalProfiles
Resets the sounding to the original data.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setPressure
Sets the pressure property.- Parameters:
pressure
- The new value.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getPressure
Returns the pressure property.- Returns:
- The pressure property.
-
getTemperature
Returns the temperature property.- Returns:
- The temperature property.
-
getDewPoint
Returns the temperature property.- Returns:
- The temperature property.
-
getPressureRealType
Returns the type of the pressure quantity.- Returns:
- The type of the pressure quantity.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getTemperatureRealType
Returns the type of the temperature quantity.- Returns:
- The type of the temperature quantity.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getDewPointRealType
Returns the type of the dew-point quantity.- Returns:
- The type of the dew-point quantity.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-