Skip to main content

A secure, unified Python interface for African climate data, integrating TAHMO station data and gridded datasets (IMERG, CHIRPS, ERA5, TAMSAT), and medium-to-seasonal weather models

Project description

Documentation

You can find the documentation for the project by following this link
https://filter-stations.readthedocs.io/en/latest/

Getting Started

All methods require an API key and secret, which can be obtained by contacting TAHMO.

  • AuthManager: The new secure gateway. Log in once with your credentials to automatically unlock access to all downstream data loaders
  • RainLoader: class is used to get our DSAIL unified weather dataset from HuggingFace (See the documentation for more information on this)
  • MediumForecaster: Connects to the Google Weather API to pull and flatten highly accurate 1-to-10 day forecasts (both hourly and daily)
  • The RetrieveData class is used to retrieve data from the TAHMO API endpoints.
  • The Kieni class is used to get weather data for stations 100km around Kieni from the central point.with water level data.

Example

from filter_stations import AuthManager, MediumForecaster, RetrieveData

# 1. Authenticate once securely
auth = AuthManager(email="your_email@domain.com", password="your_password")

# 2. Initialize any tool you need seamlessly
weather = MediumForecaster(auth_session=auth)
tahmo = RetrieveData(auth_session=auth)

# 3. Pull your data!
nyeri_forecast = weather.get_weather_api_forecast(lat=-0.41, lon=36.95, days=7)

To get started on the module test it out on Google Colab

Open In Colab

For earlier versions <= v0.6.2 use the link below for documentation

https://filter-stations.netlify.app/

Citations

If you use this package in your research, please cite it using the following BibTeX entry:

@misc{filter-stations,
  author = {Austin Kaburia},
  title = {filter-stations},
  year = {2024},
  publisher = {Python Package Index},
  journal = {PyPI},
  howpublished = {\url{https://pypi.org/project/filter-stations/}},
}

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

filter_stations-0.8.0.tar.gz (40.8 MB view details)

Uploaded Source

Built Distribution

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

filter_stations-0.8.0-py3-none-any.whl (28.0 MB view details)

Uploaded Python 3

File details

Details for the file filter_stations-0.8.0.tar.gz.

File metadata

  • Download URL: filter_stations-0.8.0.tar.gz
  • Upload date:
  • Size: 40.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for filter_stations-0.8.0.tar.gz
Algorithm Hash digest
SHA256 4feb5eed5212e2f9a67f1660eedb678255f2465f9233425b5f355a8655dfe49b
MD5 3693c5bd6fbb7957648a9fec5961109b
BLAKE2b-256 1386f094a3b9c1b686c767e3395e78af9c4fe80d2cd37cae526af262b6f2e582

See more details on using hashes here.

File details

Details for the file filter_stations-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for filter_stations-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0b1c7ee530461518dd8c0fa8dc74489a778dacbaf2dc0b967a63a301e76490d
MD5 2bd39c2a90e20cda46afaf6aff65b2eb
BLAKE2b-256 abd27ce6dd5218c2986ce7edcd7071b249ce74ad80e834b85f4ca619f210f6c6

See more details on using hashes here.

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