Main Class for EPA AQS Package

Python module to download EPA AQS Data hosted at https://www.epa.gov/aqs

The utility expects user to specify a list of years, a list of EPA Parameter Codes (see https://www.epa.gov/aqs/aqs-code-list) and some instructions how to format output

The data is downloaded from https://aqs.epa.gov/aqsweb/airdata/download_files.html

The tool also adds a column containing a uniquely generated Monitor Key

class AQS(context: Optional[AQSContext] = None)[source]

Main class, describes the whole download job

Creates a new instance :param _sphinx_paramlinks_epa.aqs.AQS.context: An optional AQSContext object, if not specified, then it is constructed from the command line arguments

collect_downloads()[source]

Constructs a list of all download tasks necessary to execute to download all the data defined in the configuration ()

Returns

Nothing

is_downloaded()[source]

Checks if there anything remains to be downloaded or if all files are up to date

Returns

True if everything is up to date, False otherwise

clear()[source]

Removes all previously downloaded data from the local storage :return: Nothing

download()[source]

Downloads all remaining data absent or not up to date) :return: Nothing