Skip to main content

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")
)

Metadata

Release files for meteosatpy 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meteosatpy 0.0.5
File Size Uploaded
meteosatpy-0.0.5.tar.gz 12.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for meteosatpy 0.0.5
File Interpreter ABI Platform
meteosatpy-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 28.0 kB

Release files / meteosatpy-0.0.5.tar.gz

Download URL meteosatpy-0.0.5.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9ea01f33e21fc7f04b97b7c8a39d29d9c0beb1673943df58eb2979b3fe11fae0
BLAKE2b-256 checksum
How to use checksums
ad64998c6c603d4c7f2f2f38f26d0eb20802be2d7f6d1024357a68c46d6734fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.1

Release files / meteosatpy-0.0.5-py3-none-any.whl

Download URL meteosatpy-0.0.5-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67221a494e4e8ed4fee3ce8ab5fc89e2802309d9586f2af9a2749aa8b1ef6e3e
BLAKE2b-256 checksum
How to use checksums
cd208e9a2f9f56ab16f8916403b55d7473a6d20ed7f1e50dd45bb49c38903264
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.1

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

1 release file

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page