Package ucar.unidata.data.sounding
Interface SoundingAdapter
- All Known Implementing Classes:
AddeSoundingAdapter
,CDMStationProfileAdapter
,CMASoundingAdapter
,NetcdfSoundingAdapter
public interface SoundingAdapter
Interface for adapting and retrieving sounding datasets into SoundingObs
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve all the sounding observations in the datasetDateTime[]
Retrieve an array of the sounding times available in the dataset.getSoundingTimes
(SoundingStation station) Retrieve a list of the sounding times available for the station.Get the source for this Adapter; used mostly by XML persistence.Retrieves an array of the all stations in the dataset.getStations
(DateTime time) Retrieves an array of the stations in the dataset for a given time.Make sure that the given SoundingOb has been fully initialized with datavoid
Set the source for this Adapter; used mostly by XML persistence.void
update()
Update internal data to reflect the current state
-
Method Details
-
update
void update()Update internal data to reflect the current state -
getStations
List getStations()Retrieves an array of the all stations in the dataset.- Returns:
- list of sounding stations or empty list if none found
-
getStations
Retrieves an array 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
-
getSoundingObs
SoundingOb[] getSoundingObs()Retrieve all the sounding observations in the dataset- Returns:
- first sounding observation for the given station
-
getSoundingTimes
DateTime[] getSoundingTimes()Retrieve an array of the sounding times available in the dataset.- Returns:
- array of timestamps or null if no data
-
getSoundingTimes
Retrieve a list of the sounding times available for the station.- Parameters:
station
- station of observation- Returns:
- list of timestamps or empty list if no times
-
initSoundingOb
Make sure that the given SoundingOb has been fully initialized with data- Parameters:
so
- SoundingOb to initialize- Returns:
- the initialized ob
-
getSource
String getSource()Get the source for this Adapter; used mostly by XML persistence.- Returns:
- the source (server or filename)
-
setSource
Set the source for this Adapter; used mostly by XML persistence.- Parameters:
s
- new source
-