Skip to main content

Library designed for downloading and managing meteorological data sourced from satellites and global models.

Project description

MeteoSatPy

PyPI Latest Release PyPI Downloads Conda Latest Release Conda Downloads

What is it?

MeteoSatPy is a Python library designed for downloading and managing hydro-meteorological data sourced from satellites and global models. It offers users efficient access to near-real-time and historical weather conditions globally. With features for data acquisition, processing, and analysis. MeteoSatPy is a versatile tool for meteorological research, forecasting, and decision-making across various sectors.

Where to get it?

The source code is currently hosted on GitHub at: https://github.com/jusethCS/meteosatpy

Binary installers for the latest released version are available at the Python Package Index (PyPI) and on Conda

# PyPI
pip install meteosatpy
# Conda
conda install juseth.chancay::meteosatpy

Dependencies

  • rasterio: Reads and writes raster formats based on Numpy N-dimensional arrays.
  • xarray: Works with labelled multi-dimensional arrays simple and efficient.
  • geopandas: Analysis and manipulation of geographical data.
  • request: HTTP library for making requests and working with web APIs.

Prior to installing MeteoSatPy using PyPi, we recommend creating a new conda environment with dependencies:

# Conda
conda create -n [env_name] geopandas rasterio xarray requests

If you need to download MSWEP data, you'll need to install Rclone.

# Conda
conda install conda-forge::rclone

To set up Rclone with a Google Drive account, we recommend watching this tutorial. Note the MSWEP data are store on this Google Drive repository.

Examples

import datetime as dt
import meteosatpy

# Target date
date = dt.datetime(2010, 1, 1) # year, month, day

# Download CHIRPS data
ch = meteosatpy.CHIRPS()
ch.download(
    date=date, 
    timestep="daily", 
    outpath=date.strftime("chirps_%Y-%m-%d.tif")
)

# Download CMORPH data
cm = meteosatpy.CMORPH()
cm.download(
    date=date, 
    timestep="daily", 
    outpath=date.strftime("cmorph_%Y-%m-%d.tif")
)

# Download MSWEP data
mw = meteosatpy.MSWEP()
mw.download(
    date=date, 
    timestep="daily", 
    dataset="Past",
    outpath=date.strftime("mswep_%Y-%m-%d.tif"))

# Download IMERG v07 final run
im = meteosatpy.IMERG(user="username", pw="pass")
im.download(
    date=date, 
    version="v07", 
    run="final", 
    timestep="daily", 
    outpath=date.strftime("imerg_%Y-%m-%d.tif")
)

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

meteosatpy-0.0.5.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

meteosatpy-0.0.5-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file meteosatpy-0.0.5.tar.gz.

File metadata

  • Download URL: meteosatpy-0.0.5.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for meteosatpy-0.0.5.tar.gz
Algorithm Hash digest
SHA256 9ea01f33e21fc7f04b97b7c8a39d29d9c0beb1673943df58eb2979b3fe11fae0
MD5 416d878feed1ef6b2e172d1c024a7c3c
BLAKE2b-256 ad64998c6c603d4c7f2f2f38f26d0eb20802be2d7f6d1024357a68c46d6734fd

See more details on using hashes here.

File details

Details for the file meteosatpy-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: meteosatpy-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for meteosatpy-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 67221a494e4e8ed4fee3ce8ab5fc89e2802309d9586f2af9a2749aa8b1ef6e3e
MD5 82aa545c9362e0025ec931af800cb662
BLAKE2b-256 cd208e9a2f9f56ab16f8916403b55d7473a6d20ed7f1e50dd45bb49c38903264

See more details on using hashes here.

Supported by

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