act.discovery.get_airnow_forecast#
- act.discovery.get_airnow_forecast(token, date=None, zipcode=None, latlon=None, distance=25)[source]#
This tool will get current AQI forecast values and categories for a reporting area by either Zip code or Lat/Lon coordinate. https://docs.airnowapi.org/
- Parameters:
token (str) – The access token for accessing the AirNowAPI web server
date (str) – The date of the forecast to be acquired. Format is YYYY-MM-DD. Default is None.
zipcode (str) – The zipcode of the location for the data request. If zipcode is not defined then a latlon coordinate must be defined.
latlon (array) – The latlon coordinate of the location for the data request. If latlon is not defined then a zipcode must be defined.
distance (int) – If no reporting area is associated with the specified zipcode or latlon, return a forecast from a nearby reporting area within this distance (in miles). Default is 25 miles
- Returns:
ds (xarray.Dataset) – Returns an Xarray dataset object
Example
act.discovery.get_airnow_forecast(token=’XXXXXX’, zipcode=’60440’)