Package ucar.unidata.data.sounding
Class AddeSoundingAdapter
java.lang.Object
ucar.unidata.beans.InvisiblePropertiedBean
ucar.unidata.data.sounding.SoundingAdapterImpl
ucar.unidata.data.sounding.AddeSoundingAdapter
- All Implemented Interfaces:
Serializable
,PropertiedBean
,SoundingAdapter
Class for retrieving upper air data from an ADDE remote server. Creates
a SoundingOb for each of the stations on the remote server for the
latest available data.
- See Also:
-
Field Summary
Fields inherited from class ucar.unidata.data.sounding.SoundingAdapterImpl
debug, defaults, haveInitialized, soundings, stations, times
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an empty AddeSoundingAdapterAddeSoundingAdapter
(String server) Retreive upper air data from a remote ADDE server using only mandatory data.AddeSoundingAdapter
(String server, String dataset) Retreive upper air data from a remote ADDE server using only mandatory data.AddeSoundingAdapter
(String server, String mandDataset, String sigDataset) Retreive upper air data from a remote ADDE server using only mandatory data.AddeSoundingAdapter
(String server, String mandDataset, String sigDataset, boolean mainHours) Retreive upper air data from a remote ADDE server using only mandatory data. -
Method Summary
Modifier and TypeMethodDescriptiongetMandatoryURL
(SoundingOb sound) Make the mandatory levels URL for the given soundingSet the mandatory data set nameGet the significant data set namegetSigURL
(SoundingOb sound) Make the url for the significant levels for the soundingGet the source of the data (server)protected void
init()
Initialize the class.initSoundingOb
(SoundingOb sound) Check to see if the RAOB has any datastatic void
test by running java ucar.unidata.data.sounding.AddeSoundingAdaptervoid
setMandDataset
(String value) Set the mandatory data set namevoid
setSigDataset
(String value) Set the significant data set namevoid
Set the ADDE server nametoString()
The string representationvoid
update()
Update this adapter for new dataMethods 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, wait, wait, wait
Methods inherited from interface ucar.unidata.data.sounding.SoundingAdapter
getSoundingObs, getSoundingTimes, getSoundingTimes, getStations, getStations
-
Constructor Details
-
AddeSoundingAdapter
public AddeSoundingAdapter()Construct an empty AddeSoundingAdapter -
AddeSoundingAdapter
Retreive upper air data from a remote ADDE server using only mandatory data.- Parameters:
server
- name or IP address of remote server- Throws:
Exception
- (AddeException) if there is no data available or there is trouble connecting to the remote server
-
AddeSoundingAdapter
Retreive upper air data from a remote ADDE server using only mandatory data.- Parameters:
server
- name or IP address of remote serverdataset
- name of ADDE dataset (group/descriptor)- Throws:
Exception
- (AddeException) if there is no data available or there is trouble connecting to the remote server
-
AddeSoundingAdapter
Retreive upper air data from a remote ADDE server using only mandatory data.- Parameters:
server
- name or IP address of remote servermandDataset
- name of mandatory level upper air ADDE dataset (group/descriptor)sigDataset
- name of significant level upper air ADDE dataset (group/descriptor)- Throws:
Exception
- (AddeException) if there is no data available or there is trouble connecting to the remote server
-
AddeSoundingAdapter
public AddeSoundingAdapter(String server, String mandDataset, String sigDataset, boolean mainHours) throws Exception Retreive upper air data from a remote ADDE server using only mandatory data.- Parameters:
server
- name or IP address of remote servermandDataset
- name of mandatory level upper air ADDE dataset (group/descriptor)sigDataset
- name of significant level upper air ADDE dataset (group/descriptor)mainHours
- only get data for main (00 & 12Z) hours- Throws:
Exception
- (AddeException) if there is no data available or there is trouble connecting to the remote server
-
-
Method Details
-
init
Initialize the class. Populate the variable list and get the server and dataset information.- Overrides:
init
in classSoundingAdapterImpl
- Throws:
Exception
- problem occurred
-
update
public void update()Update this adapter for new data- Specified by:
update
in interfaceSoundingAdapter
-
setSource
Set the ADDE server name- Specified by:
setSource
in interfaceSoundingAdapter
- Parameters:
server
- server name or IP address
-
getSource
Get the source of the data (server)- Specified by:
getSource
in interfaceSoundingAdapter
- Returns:
- server name or IP address
-
setMandDataset
Set the mandatory data set name- Parameters:
value
- mandatory data set name
-
getMandDataset
Set the mandatory data set name- Returns:
- the mandatory data set name
-
setSigDataset
Set the significant data set name- Parameters:
value
- the significant data set name
-
getSigDataset
Get the significant data set name- Returns:
- the significant data set name
-
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:
- a sounding with data
-
getMandatoryURL
Make the mandatory levels URL for the given sounding- Parameters:
sound
- sounding- Returns:
- mandatory url
-
getSigURL
Make the url for the significant levels for the sounding- Parameters:
sound
- the sounding- Returns:
- sig url
-
main
test by running java ucar.unidata.data.sounding.AddeSoundingAdapter- Parameters:
args
- array of arguments. Takes up to 3 arguments as "server mandatory dataset significant dataset" Use "x" for any of these arguments to use the default.
-
toString
The string representation
-