Interface SoundingAdapter

All Known Implementing Classes:
AddeSoundingAdapter, CDMStationProfileAdapter, CMASoundingAdapter, NetcdfSoundingAdapter

public interface SoundingAdapter
Interface for adapting and retrieving sounding datasets into SoundingObs
  • 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

      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