Skip to main content

Grab publicly available weather data

Project description

riweather

Tests Codecov Release

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.1.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

riweather-0.6.1-py3-none-any.whl (2.4 MB view details)

Uploaded Python 3

File details

Details for the file riweather-0.6.1.tar.gz.

File metadata

  • Download URL: riweather-0.6.1.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for riweather-0.6.1.tar.gz
Algorithm Hash digest
SHA256 65f4664e72d085b059700c3a620ed347bb1b379eb960921416e1c36f4ebc760f
MD5 d6208c28d1b6fb26537e2da081dbbbc4
BLAKE2b-256 009e2d2faf6898994c0c674ef7c60af581330913124936ae6cb9f89fb0821e0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for riweather-0.6.1.tar.gz:

Publisher: release.yml on ensley-nexant/riweather

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file riweather-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: riweather-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for riweather-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f5013432e3d509a06c33a5751dd203caca498fdf3a4065e319c4d2645139826
MD5 cb50fd4b00be3deae75a2accb8f6de46
BLAKE2b-256 559ccdf72926406e3068df5413a62dcec11c9cd2b30463b8427292ab2749ca18

See more details on using hashes here.

Provenance

The following attestation bundles were made for riweather-0.6.1-py3-none-any.whl:

Publisher: release.yml on ensley-nexant/riweather

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page