Package ucar.unidata.data.sounding
Class CMASoundingAdapter
java.lang.Object
ucar.unidata.beans.InvisiblePropertiedBean
ucar.unidata.data.sounding.SoundingAdapterImpl
ucar.unidata.data.sounding.CMASoundingAdapter
- All Implemented Interfaces:
Serializable
,PropertiedBean
,SoundingAdapter
This class creates VisAD compatible data objects from a
file of upper air soundings from CMA.
- Author:
- IDV development team
- See Also:
-
Field Summary
Fields inherited from class ucar.unidata.data.sounding.SoundingAdapterImpl
debug, defaults, haveInitialized, soundings, stations, times
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for reflection based constructionCMASoundingAdapter
(File file) Read a file of decoded soundings from CMACMASoundingAdapter
(String filename) Read a file of decoded soundings from CMA. -
Method Summary
Modifier and TypeMethodDescriptionGet the filename for this adapter.protected void
init()
Read a file of decoded soundings from CMA.protected void
initold()
Read a file of decoded soundings from CMA.initSoundingOb
(SoundingOb sound) Check to see if the RAOB has any datastatic void
Test it outprotected void
setRAOBData
(SoundingOb so, List<ucar.unidata.data.sounding.SoundingLevelData> levels) Set the data in the RAOB.void
Set the source for this datavoid
update()
Update the adapter (re-read the data)Methods inherited from class ucar.unidata.data.sounding.SoundingAdapterImpl
checkInit, dbPrint, getDflt, getSoundingOb, getSoundingObs, getSoundingTimes, getSoundingTimes, getStations, getStations
Methods inherited from class ucar.unidata.beans.InvisiblePropertiedBean
addProperty, addPropertyChangeListener, addPropertyChangeListener, disablePropertyChangeEvents, enablePropertyChangeEvents, getTitle, removePropertyChangeListener, removePropertyChangeListener, setTitle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ucar.unidata.data.sounding.SoundingAdapter
getSoundingObs, getSoundingTimes, getSoundingTimes, getStations, getStations
-
Constructor Details
-
CMASoundingAdapter
public CMASoundingAdapter()Constructor for reflection based construction -
CMASoundingAdapter
Read a file of decoded soundings from CMA.- Parameters:
filename
- the fully qualified path and name of the file to be adapted.- Throws:
Exception
- problem reading file
-
CMASoundingAdapter
Read a file of decoded soundings from CMA- Parameters:
file
- File to read- Throws:
Exception
- problem encountered
-
-
Method Details
-
update
public void update()Update the adapter (re-read the data)- Specified by:
update
in interfaceSoundingAdapter
-
init
Read a file of decoded soundings from CMA. Format of file is as follows:- Overrides:
init
in classSoundingAdapterImpl
- Throws:
Exception
- problem reading the file
-
initold
Read a file of decoded soundings from CMA. Format of file is as follows:- Throws:
Exception
- problem reading the file
-
setRAOBData
protected void setRAOBData(SoundingOb so, List<ucar.unidata.data.sounding.SoundingLevelData> levels) Set the data in the RAOB.- Parameters:
so
- the SoundingOblevels
- list of SoundingLevelData
-
initSoundingOb
Check to see if the RAOB has any data- Specified by:
initSoundingOb
in interfaceSoundingAdapter
- Specified by:
initSoundingOb
in classSoundingAdapterImpl
- Parameters:
sound
- sounding to check- Returns:
- sounding with data
-
getSource
Get the filename for this adapter.- Specified by:
getSource
in interfaceSoundingAdapter
- Returns:
- name of file
-
setSource
Set the source for this data- Specified by:
setSource
in interfaceSoundingAdapter
- Parameters:
s
- new source
-
main
Test it out- Parameters:
args
- filename- Throws:
Exception
- problem opening or decoding the file
-