Class GetNOAAWeather

java.lang.Object
org.deltava.dao.http.DAO
org.deltava.dao.http.GetNOAAWeather

public class GetNOAAWeather extends DAO
A Data Access Object to download Weather data from the NOAA.
Since:
2.2
Version:
11.1
Author:
Luke
  • Constructor Details

    • GetNOAAWeather

      public GetNOAAWeather()
  • Method Details

    • getMETARCycle

      public Map<String,METAR> getMETARCycle(int hour) throws DAOException
      Retrieves a complete METAR cycle.
      Parameters:
      hour - the hour in military time
      Returns:
      a Map of METAR objects, keyed by airport code
      Throws:
      DAOException - if an I/O error occurs
    • getTAFCycle

      public Map<String,TAF> getTAFCycle(int hour) throws DAOException
      Retrieves a complete TAF cycle.
      Parameters:
      hour - the hour in military time
      Returns:
      a Map of TAF objects, keyed by airport code
      Throws:
      DAOException - if an I/O error occurs