Tools for downloading Oregon DEQ Air Quality data
Project description
Install with pip:
pip install deq-tools
deq_tools is a limited functionality Python library for accessing Oregon DEQ Air Quality data with a Python script.
Usage:
import deq_tools
print(deq_tools.get_station_names()) # Dump a list of names of stations where data may be available
print(deq_tools.get_station_data()) # Dump all station info, including data available for each station
station_id = 2 # Get this value from get_station_names()
from_ts = "2018/05/03T00:00" # ISO datetime format: YYYY/MM/DDTHH:MM
to_ts = "2018/05/10T23:59"
print(deq_tools.get_data(station_id, from_ts, to_ts)) # Get the data
In addition to the required positional parameters shown above, get_deq_data()
also takes these optional named parameters:
- resolution:
- Default = 60. 60 for hourly data, 1440 for daily values. Higher resolutions don't work, sorry, but lower-resolutions, such as 120, 180, 480, 720 will.
- agg_method:
- Default = "Average". These will probably all work: Average, MinAverage, MaxAverage, RunningAverage, MinRunningAverage, MaxRunningAverage, RunningForword, MinRunningForword, MaxRunningForword.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
deq_tools-0.2.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for deq_tools-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1021b5963db85c15ab952ef15474412d542f0fc624910f43aef70c3f74f01ec |
|
MD5 | 2d8dba70b647bf5ad89651dbc57bca90 |
|
BLAKE2b-256 | f822d46a3c4c5737e623441fd21a7a8b26bee7bb3e12d1a9c2b3d453cc8e22e8 |