ucar.unidata.data.sounding
Interface SoundingAdapter

All Known Implementing Classes:
AddeSoundingAdapter, CMASoundingAdapter, NetcdfSoundingAdapter

public interface SoundingAdapter

Interface for adapting and retrieving sounding datasets into SoundingObs


Method Summary
 SoundingOb[] getSoundingObs()
          Retrieve all the sounding observations in the dataset
 DateTime[] getSoundingTimes()
          Retrieve an array of the sounding times available in the dataset.
 List getSoundingTimes(SoundingStation station)
          Retrieve a list of the sounding times available for the station.
 String getSource()
          Get the source for this Adapter; used mostly by XML persistence.
 List getStations()
          Retrieves an array of the all stations in the dataset.
 List getStations(DateTime time)
          Retrieves an array of the stations in the dataset for a given time.
 SoundingOb initSoundingOb(SoundingOb so)
          Make sure that the given SoundingOb has been fully initialized with data
 void setSource(String s)
          Set the source for this Adapter; used mostly by XML persistence.
 void update()
          Update internal data to reflect the current state
 

Method Detail

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

List getStations(DateTime time)
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

List getSoundingTimes(SoundingStation station)
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

SoundingOb initSoundingOb(SoundingOb so)
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

void setSource(String s)
Set the source for this Adapter; used mostly by XML persistence.

Parameters:
s - new source