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 StringGet a default value using this Adapter's prefixGet the filename for this adapter.protected voidinit()Read a netCDF file of decoded soundings.initSoundingOb(SoundingOb sound) Check to see if the RAOB has any datavoidSet 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
-
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:
updatein interfaceSoundingAdapter
-
init
Read a netCDF file of decoded soundings.- Overrides:
initin classSoundingAdapterImpl- Throws:
Exception- problem reading the file
-
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
-
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
-
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
-