ucar.unidata.view.sounding
Class Sounding

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.CompositeDisplayable
          extended by ucar.unidata.view.sounding.Sounding

public class Sounding
extends CompositeDisplayable

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
static String DEW_POINT
          The name of the dew-point property.
static String PRESSURE
          The name of the pressure property.
static String TEMPERATURE
          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
Sounding(LocalDisplay display)
          Constructs from a VisAD display.
 
Method Summary
 Real getDewPoint()
          Returns the temperature property.
 Field getDewPointField()
          Returns the dew-point profile.
 RealType getDewPointRealType()
          Returns the type of the dew-point quantity.
 Real getPressure()
          Returns the pressure property.
 RealType getPressureRealType()
          Returns the type of the pressure quantity.
 Real getTemperature()
          Returns the temperature property.
 Field getTemperatureField()
          Returns the temperature profile.
 RealType getTemperatureRealType()
          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 setFields(Field temperatureField, Field dewPointField)
          Sets the profiles.
 void setOriginalProfiles()
          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, 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, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getData, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRESSURE

public static String PRESSURE
The name of the pressure property.


TEMPERATURE

public static String TEMPERATURE
The name of the temperature property.


DEW_POINT

public static String DEW_POINT
The name of the dew-point property.

Constructor Detail

Sounding

public Sounding(LocalDisplay display)
         throws VisADException,
                RemoteException
Constructs from a VisAD display. The constrainProfiles property is initially false.

Parameters:
display - The VisAD display.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.
Method Detail

setConstrainProfiles

public void setConstrainProfiles(boolean yes)
                          throws RemoteException,
                                 VisADException
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

public void setTemperatureField(Field temperatureField)
                         throws RemoteException,
                                VisADException
Sets the temperature profile.

Parameters:
temperatureField - The temperature profile.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

setDewPointField

public void setDewPointField(Field dewPointField)
                      throws RemoteException,
                             VisADException
Sets the dew-point profile.

Parameters:
dewPointField - The dew-point profile.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getTemperatureField

public Field getTemperatureField()
                          throws VisADException,
                                 RemoteException
Returns the temperature profile. NB: Not a copy.

Returns:
The temperature profile.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getDewPointField

public Field getDewPointField()
                       throws VisADException,
                              RemoteException
Returns the dew-point profile. NB: Not a copy.

Returns:
The dew-point profile.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

setOriginalProfiles

public void setOriginalProfiles()
                         throws VisADException,
                                RemoteException
Resets the sounding to the original data.

Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

setPressure

public void setPressure(Real pressure)
                 throws RemoteException,
                        VisADException
Sets the pressure property.

Parameters:
pressure - The new value.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getPressure

public Real getPressure()
Returns the pressure property.

Returns:
The pressure property.

getTemperature

public Real getTemperature()
Returns the temperature property.

Returns:
The temperature property.

getDewPoint

public Real getDewPoint()
Returns the temperature property.

Returns:
The temperature property.

getPressureRealType

public RealType getPressureRealType()
                             throws VisADException,
                                    RemoteException
Returns the type of the pressure quantity.

Returns:
The type of the pressure quantity.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getTemperatureRealType

public RealType getTemperatureRealType()
                                throws VisADException,
                                       RemoteException
Returns the type of the temperature quantity.

Returns:
The type of the temperature quantity.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getDewPointRealType

public RealType getDewPointRealType()
                             throws VisADException,
                                    RemoteException
Returns the type of the dew-point quantity.

Returns:
The type of the dew-point quantity.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.