Package ucar.unidata.data.sounding
Class SoundingAdapterImpl
java.lang.Object
ucar.unidata.beans.InvisiblePropertiedBean
ucar.unidata.data.sounding.SoundingAdapterImpl
- All Implemented Interfaces:
Serializable,PropertiedBean
- Direct Known Subclasses:
AddeSoundingAdapter,CDMStationProfileAdapter,CMASoundingAdapter,NetcdfSoundingAdapter
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
FieldsModifier and TypeFieldDescriptionprotected booleanDebug flagprotected DefaultsDefaults for parametersprotected booleanInitialization flagprotected List<SoundingOb> List of soundingsprotected List<SoundingStation> List of stationsList of times -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCheck to see if we have been initialized.protected voidIf we are in debug mode then print the stringprotected StringGet a property value from the DefaultsgetSoundingOb(SoundingStation station) Retrieve the first sounding observation found for the given station.Retrieve all the sounding observations in the datasetDateTime[]Retrieve an array of the sounding times available in the dataset.getSoundingTimes(SoundingStation station) Retrieves a list of the times in the dataset for a given station.Retrieves a list of the stations in the dataset.getStations(DateTime time) Retrieves a list of the stations in the dataset for a given time.protected voidinit()Initialize the adapter.abstract SoundingObInitialize a sounding obMethods inherited from class ucar.unidata.beans.InvisiblePropertiedBean
addProperty, addPropertyChangeListener, addPropertyChangeListener, disablePropertyChangeEvents, enablePropertyChangeEvents, getTitle, removePropertyChangeListener, removePropertyChangeListener, setTitle
-
Field Details
-
haveInitialized
protected boolean haveInitializedInitialization flag -
debug
protected boolean debugDebug flag -
defaults
Defaults for parameters -
stations
List of stations -
soundings
List of soundings -
times
List of times
-
-
Constructor Details
-
SoundingAdapterImpl
Construct an empty AddeSoundingAdapter- Parameters:
name- name for this adapter
-
-
Method Details
-
init
Initialize the adapter. Set the initialization flag to true. Subclasses should call super.init() after doing what they need to do.- Throws:
Exception- problem initializing
-
checkInit
protected void checkInit()Check to see if we have been initialized. -
getDflt
Get a property value from the Defaults- Parameters:
prefix- prefix for propertyname- name of propertydflt- default value- Returns:
- value for prefix.name or dflt
-
dbPrint
If we are in debug mode then print the string- Parameters:
s- string to print
-
getStations
Retrieves a list of the stations in the dataset.- Returns:
- list of sounding stations or empty list if none found
-
getStations
Retrieves a list of the stations in the dataset for a given time.- Parameters:
time- time of observation- Returns:
- list of sounding stations or null if none found
-
initSoundingOb
Initialize a sounding ob- Parameters:
so- ob to initialize- Returns:
- initialized observation
-
getSoundingOb
Retrieve the first sounding observation found for the given station.- Parameters:
station- station to look for- Returns:
- first sounding observation for the given station or null if no sounding is available for this station
-
getSoundingObs
Retrieve all the sounding observations in the dataset- Returns:
- all the sounding observations in the dataset or null
-
getSoundingTimes
Retrieve an array of the sounding times available in the dataset.- Returns:
- list of timestamps
-
getSoundingTimes
Retrieves a list of the times in the dataset for a given station.- Parameters:
station- station of observation- Returns:
- list of times or empty list if none found
-