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.6.0.tar.gz
(2.3 MB
view details)
Built Distribution
File details
Details for the file riweather-0.6.0.tar.gz
.
File metadata
- Download URL: riweather-0.6.0.tar.gz
- Upload date:
- Size: 2.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 136773084307854cf05115a67023e100d0721e5e98bc29a2ba6ad76f4326c8d5 |
|
MD5 | 44d810a9fc0435499b29e3175567e8b8 |
|
BLAKE2b-256 | a59813d6de8e2887993b0381454992f17a05c6a1830255f6be66327018fbd37a |
File details
Details for the file riweather-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: riweather-0.6.0-py3-none-any.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70cf443b61067d30316fd6a6695c7863429949095d50f6333890a35737e93eb2 |
|
MD5 | 85ef80824bc690329b7bde5a5f6b171c |
|
BLAKE2b-256 | fd1dae509c159b4372a67eeef89d1ec92e4c95f43869a5b8f49297a27b952fec |