Package ucar.unidata.data.sounding
Class NetcdfSoundingAdapter
java.lang.Object
ucar.unidata.beans.InvisiblePropertiedBean
ucar.unidata.data.sounding.SoundingAdapterImpl
ucar.unidata.data.sounding.NetcdfSoundingAdapter
- All Implemented Interfaces:
Serializable
,PropertiedBean
,SoundingAdapter
This class creates VisAD compatible data objects from a netCDF
file of upper air soundings.
- Version:
- $Revision: 1.20 $
- 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 constructionNetcdfSoundingAdapter
(File file) Read a netCDF file of decoded soundingsNetcdfSoundingAdapter
(String filename) Read a netCDF file of decoded soundings. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Get a default value using this Adapter's prefixGet the filename for this adapter.protected void
init()
Read a netCDF file of decoded soundings.initSoundingOb
(SoundingOb sound) Check to see if the RAOB has any datavoid
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
-
NetcdfSoundingAdapter
public NetcdfSoundingAdapter()Constructor for reflection based construction -
NetcdfSoundingAdapter
Read a netCDF file of decoded soundings.- Parameters:
filename
- the fully qualified path and name of the file to be adapted.- Throws:
Exception
- problem reading file
-
NetcdfSoundingAdapter
Read a netCDF file of decoded soundings- 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 netCDF file of decoded soundings.- Overrides:
init
in classSoundingAdapterImpl
- Throws:
Exception
- problem reading the file
-
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
-
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
-
getDflt
Get a default value using this Adapter's prefix- Parameters:
name
- name of property keydflt
- default value- Returns:
- the default for that property or dflt if not in properties
-