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.1.tar.gz
(2.2 MB
view details)
Built Distribution
File details
Details for the file riweather-0.5.1.tar.gz
.
File metadata
- Download URL: riweather-0.5.1.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.12 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a93e8ed49d2bb97168db525e426a507221613788e4cb732e8f491803c3494a01 |
|
MD5 | 80b5a5765460513a760f2eb80ecfa2f8 |
|
BLAKE2b-256 | e4df5641538d463e4f2450f64258f94ae6cc35248d2d66e9e26c6830afb5544d |
Provenance
File details
Details for the file riweather-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: riweather-0.5.1-py3-none-any.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.12 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fdd9e44a24628acdd3527395f4603c1c90d393b4a4032503c7dddf312399814 |
|
MD5 | 5773750c3623faf51da2067e4620c825 |
|
BLAKE2b-256 | 5cab0676e3dfd5c98a63a2c0ce2e1c6ee8352b8830e8116b8e0d47f9b3063a73 |