Package ucar.unidata.view.sounding
Class WindProfile
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.CompositeDisplayable
ucar.unidata.view.sounding.WindProfile
- Direct Known Subclasses:
WindBarbProfile
,WindStaff
,WindTrace
Provides support for the display of a vertical profile of the horizontal
wind.
- Version:
- $Id: WindProfile.java,v 1.27 2006/11/13 16:23:51 dmurray Exp $
- Author:
- Steven R. Emmerson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
The name of the wind direction property.static String
The name of the geopotential altitude property.static String
The name of the geopotential altitude extent property.static String
The name of the maximum wind speed property.static String
The name of the geopotential altitude property.static String
The name of the wind speed property.static String
The name of the wind profile 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
ConstructorsModifierConstructorDescriptionprotected
Constructs from nothing.protected
WindProfile
(WindProfile that) Constructs from another instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected static FlatField
ensureCartesian
(FlatField input) Ensures a wind profile in cartesian coordinates.boolean
Indicates if this instance is identical to another object.Returns the wind direction property.Returns the geopotential altitude property.Returns the geopotential altitude extent property.static RealType
Returns the type of the geopotential altitude.Returns the maximum wind speed property.protected FlatField
Returns an instance of a wind field with no values.Returns the pressure property.protected abstract Field
Returns the vertical profile of the horizontal wind.static RealType
Returns the type of the southerly wind.getSpeed()
Returns the wind speed property.static RealType
Returns the type of the westerly wind.int
hashCode()
Returns the hash code of this instance.protected void
profileChange
(Field oldProfile) Handles a change to the vertical profile of the horizontal wind due to either explicit setting or direct manipulation by a VisAD DataRenderer.protected void
Sets the vertical extent of the wind profile.protected void
setDirection
(Real dir) Set the direction valuevoid
setGeopotentialAltitude
(Real geopotentialAltitude) Sets the geopotential altitude property.protected void
Sets the maximum wind speed of the wind profile.abstract void
Resets the vertical profile of the horizontal wind to the profile of the last setProfile().void
setPressure
(Real pressure) Sets the pressure property.abstract void
setProfile
(Field profile) Sets the vertical profile of the horizontal wind.protected void
Set the speed propertyprotected void
Sets the wind speed and direction properties.abstract void
setWindLevels
(Gridded1DSet levels) Set the levels of the wind profile to display.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
-
WIND_PROFILE
The name of the wind profile property. -
GEOPOTENTIAL_ALTITUDE
The name of the geopotential altitude property. -
PRESSURE
The name of the geopotential altitude property. -
SPEED
The name of the wind speed property. -
DIRECTION
The name of the wind direction property. -
GEOPOTENTIAL_ALTITUDE_EXTENT
The name of the geopotential altitude extent property. -
MAXIMUM_SPEED
The name of the maximum wind speed property.
-
-
Constructor Details
-
WindProfile
Constructs from nothing.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
WindProfile
Constructs from another instance.- Parameters:
that
- The other instance.- Throws:
VisADException
- if a core VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
-
Method Details
-
getMissingWindField
Returns an instance of a wind field with no values.- Returns:
- A wind field with no values.
-
setProfile
Sets the vertical profile of the horizontal wind.- Parameters:
profile
- The vertical profile of the horizontal wind.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setOriginalProfile
Resets the vertical profile of the horizontal wind to the profile of the last setProfile().- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getProfile
Returns the vertical profile of the horizontal wind.- Returns:
- The vertical profile of the horizontal wind.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
profileChange
Handles a change to the vertical profile of the horizontal wind due to either explicit setting or direct manipulation by a VisAD DataRenderer.- Parameters:
oldProfile
- The old profile. May benull
.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setAltitudeExtent
Sets the vertical extent of the wind profile.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setMaximumSpeed
Sets the maximum wind speed of the wind profile.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getMaximumSpeed
Returns the maximum wind speed property.- Returns:
- The maximum wind speed property.
-
getGeopotentialAltitudeExtent
Returns the geopotential altitude extent property.- Returns:
- The geopotential altitude extent property.
-
setGeopotentialAltitude
public void setGeopotentialAltitude(Real geopotentialAltitude) throws RemoteException, VisADException Sets the geopotential altitude property.- Parameters:
geopotentialAltitude
- The new value.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getGeopotentialAltitude
Returns the geopotential altitude property.- Returns:
- The geopotential altitude property.
-
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.
-
setSpeedAndDirection
Sets the wind speed and direction properties.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getSpeed
Returns the wind speed property.- Returns:
- The wind speed property.
-
getDirection
Returns the wind direction property.- Returns:
- The wind direction property.
-
getGeopotentialAltitudeRealType
Returns the type of the geopotential altitude.- Returns:
- The type of the geopotential altitude.
- Throws:
VisADException
- VisAD failure.
-
getWesterlyWindRealType
Returns the type of the westerly wind.- Returns:
- The type of the westerly wind.
- Throws:
VisADException
- VisAD failure.
-
getSoutherlyWindRealType
Returns the type of the southerly wind.- Returns:
- The type of the southerly wind.
- Throws:
VisADException
- VisAD failure.
-
equals
Indicates if this instance is identical to another object. -
hashCode
public int hashCode()Returns the hash code of this instance. -
ensureCartesian
Ensures a wind profile in cartesian coordinates.- Parameters:
input
- Wind profile in cartesian or polar coordinates.- Returns:
- Wind profile in cartesian coordinates.
- Throws:
VisADException
- if a core VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
setWindLevels
Set the levels of the wind profile to display.- Parameters:
levels
- the set of levels (if null, display all);- Throws:
VisADException
- if a core VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
setSpeed
Set the speed property- Parameters:
spd
- speed value
-
setDirection
Set the direction value- Parameters:
dir
- direction value
-