public class NetcdfSoundingAdapter extends SoundingAdapterImpl implements SoundingAdapter
debug, defaults, haveInitialized, soundings, stations, times
Constructor and Description |
---|
NetcdfSoundingAdapter()
Constructor for reflection based construction
|
NetcdfSoundingAdapter(java.io.File file)
Read a netCDF file of decoded soundings
|
NetcdfSoundingAdapter(java.lang.String filename)
Read a netCDF file of decoded soundings.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getDflt(java.lang.String name,
java.lang.String dflt)
Get a default value using this Adapter's prefix
|
java.lang.String |
getSource()
Get the filename for this adapter.
|
protected void |
init()
Read a netCDF file of decoded soundings.
|
SoundingOb |
initSoundingOb(SoundingOb sound)
Check to see if the RAOB has any data
|
void |
setSource(java.lang.String s)
Set the source for this data
|
void |
update()
Update the adapter (re-read the data)
|
checkInit, dbPrint, getDflt, getSoundingOb, getSoundingObs, getSoundingTimes, getSoundingTimes, getStations, getStations
addProperty, addPropertyChangeListener, addPropertyChangeListener, disablePropertyChangeEvents, enablePropertyChangeEvents, getTitle, removePropertyChangeListener, removePropertyChangeListener, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSoundingObs, getSoundingTimes, getSoundingTimes, getStations, getStations
public NetcdfSoundingAdapter()
public NetcdfSoundingAdapter(java.lang.String filename) throws java.lang.Exception
filename
- the fully qualified path and name of the file
to be adapted.java.lang.Exception
- problem reading filepublic NetcdfSoundingAdapter(java.io.File file) throws java.lang.Exception
file
- File to readjava.lang.Exception
- problem encounteredpublic void update()
update
in interface SoundingAdapter
protected void init() throws java.lang.Exception
init
in class SoundingAdapterImpl
java.lang.Exception
- problem reading the filepublic java.lang.String getSource()
getSource
in interface SoundingAdapter
public void setSource(java.lang.String s)
setSource
in interface SoundingAdapter
s
- new sourcepublic SoundingOb initSoundingOb(SoundingOb sound)
initSoundingOb
in interface SoundingAdapter
initSoundingOb
in class SoundingAdapterImpl
sound
- sounding to checkprotected java.lang.String getDflt(java.lang.String name, java.lang.String dflt)
name
- name of property keydflt
- default value