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 StringThe name of the wind direction property.static StringThe name of the geopotential altitude property.static StringThe name of the geopotential altitude extent property.static StringThe name of the maximum wind speed property.static StringThe name of the geopotential altitude property.static StringThe name of the wind speed property.static StringThe name of the wind profile property.Fields inherited from class ucar.visad.display.CompositeDisplayable
cnt, labelFields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs from nothing.protectedWindProfile(WindProfile that) Constructs from another instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected static FlatFieldensureCartesian(FlatField input) Ensures a wind profile in cartesian coordinates.booleanIndicates 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 RealTypeReturns the type of the geopotential altitude.Returns the maximum wind speed property.protected FlatFieldReturns an instance of a wind field with no values.Returns the pressure property.protected abstract FieldReturns the vertical profile of the horizontal wind.static RealTypeReturns the type of the southerly wind.getSpeed()Returns the wind speed property.static RealTypeReturns the type of the westerly wind.inthashCode()Returns the hash code of this instance.protected voidprofileChange(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 voidSets the vertical extent of the wind profile.protected voidsetDirection(Real dir) Set the direction valuevoidsetGeopotentialAltitude(Real geopotentialAltitude) Sets the geopotential altitude property.protected voidSets the maximum wind speed of the wind profile.abstract voidResets the vertical profile of the horizontal wind to the profile of the last setProfile().voidsetPressure(Real pressure) Sets the pressure property.abstract voidsetProfile(Field profile) Sets the vertical profile of the horizontal wind.protected voidSet the speed propertyprotected voidSets the wind speed and direction properties.abstract voidsetWindLevels(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, toStringMethods 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
-