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 voidinit()Read a file of decoded soundings from CMA.protected voidinitold()Read a file of decoded soundings from CMA.initSoundingOb(SoundingOb sound) Check to see if the RAOB has any datastatic voidTest it outprotected voidsetRAOBData(SoundingOb so, List<ucar.unidata.data.sounding.SoundingLevelData> levels) Set the data in the RAOB.voidSet the source for this datavoidupdate()Update the adapter (re-read the data)Methods inherited from class ucar.unidata.data.sounding.SoundingAdapterImpl
checkInit, dbPrint, getDflt, getSoundingOb, getSoundingObs, getSoundingTimes, getSoundingTimes, getStations, getStationsMethods inherited from class ucar.unidata.beans.InvisiblePropertiedBean
addProperty, addPropertyChangeListener, addPropertyChangeListener, disablePropertyChangeEvents, enablePropertyChangeEvents, getTitle, removePropertyChangeListener, removePropertyChangeListener, setTitleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
updatein interfaceSoundingAdapter
-
init
Read a file of decoded soundings from CMA. Format of file is as follows:- Overrides:
initin 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:
initSoundingObin interfaceSoundingAdapter- Specified by:
initSoundingObin classSoundingAdapterImpl- Parameters:
sound- sounding to check- Returns:
- sounding with data
-
getSource
Get the filename for this adapter.- Specified by:
getSourcein interfaceSoundingAdapter- Returns:
- name of file
-
setSource
Set the source for this data- Specified by:
setSourcein interfaceSoundingAdapter- Parameters:
s- new source
-
main
Test it out- Parameters:
args- filename- Throws:
Exception- problem opening or decoding the file
-