Grab publicly available weather data
Project description
riweather
Grab publicly available weather data with riweather
. See the full documentation.
Installation
Install with pip:
pip install riweather
To create interactive maps of weather station locations, install the package along with its optional dependencies:
pip install riweather[plots]
Usage
Given a latitude and longitude, get a list of weather stations sorted from nearest to farthest from that location.
>>> import riweather
>>> station_rank = riweather.rank_stations(39.98, -105.13, max_distance_m=20000)
Select the top station (or a different station):
>>> station = riweather.select_station(station_rank, rank=0)
View information about that station:
>>> station.name, station.usaf_id
And pull weather data from that station for a certain year.
>>> station.fetch_temp_data(2022)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
riweather-0.5.3.tar.gz
(2.2 MB
view hashes)
Built Distribution
Close
Hashes for riweather-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6f1df50a4afd3549c3b550ae3c286a738dc7d506c7088ae6e9a0feac3e20493 |
|
MD5 | 0be7852b4bdb245ad8cfa2c31f55d48b |
|
BLAKE2b-256 | d96ff7fdf2176e2702608090d11ae5a44186bdbcb65e1816bf0d15639fbc2811 |