Skip to main content

Package for downloading and analysing NASA Global Precipitation Measurement mission data.

Project description

gpm_precipitation_tools

https://img.shields.io/pypi/v/gpm_precipitation_tools.svg https://img.shields.io/travis/LSDtopotools/gpm_precipitation_tools.svg Documentation Status

Package for downloading and analysing NASA Global Precipitation Measurement mission data.

This tool is an adapted version of the PPTs tool developed by Vinicius Mesquita. It was modified from the original code by Marina Ruiz Sánchez-Oro (University of Edinburgh - School of GeoSciences) and Guillaume Goodwin (University of Edinburgh - School of GeoSciences, now in University of Padova). It offers less flexibility than the original PPTs tool and focuses on downloading rainfall data from GPM instead of offering various data sources. It contains an additional module to generate time-series of rainfall intensity in over a specified area of interest.

Accessing data

Before you try to download any data, ensure that you have created an account at the NASA Earth Data website.

Make a login and password, click in Applications>Authorized Apps> Approve More Applications and select NASA GESDISC DATA ARCHIVE.

You will be prompted for the username and the password every time you download the data using this package.

Usage

Install the gpm_precipitation_tools package:

pip install gpm_precipitation_tools

To download and pre-process the precipitation data (type directly in the command line):

PPT_CMD_RUN --ProdTP XXX --StartDate %Y-%m-%d --EndDate %Y-%m-%d --ProcessDir XXX --SptSlc XXX

To process the precipitation data and convert into timeseries or raster:

process_timeseries_files_pipeline --file_folder XXX --crs EPSG:XXXX --x_lon XX --y_lat YY --time %Y-%m-%d:%H%M%S

Where,

–ProdTP = ‘GPM_30min’ (default)

GPM_30min: GPM half-hourly (IMERGM v6)

GPM_D: GPM daily (IMERGM v6)

GPM_M: GPM monthly (IMERGM v6)

–StartDate = Insert the start date (format %Y-%M-%D)

–EndDate = Insert the end date (format %Y-%M-%D)

–ProcessDir = Insert the processing directory path

–SptSlc = Insert the cutline feature path (if not used, it assumes a global product)

–OP = Call this argument if you already have the data and want to process it. Make sure you have a directory with a raw files subfolder!!!!

–file_folder = Folder where the data to analyse lives.

–crs = Coordinate system in format EPSG:XXXX.

–x_lon = Longitude coordinate of the point of interest.

–y_lat = Latitude coordinate of the point of interest.

–time = Time of interest (format: %Y-%m-%d:%H%M%S)

Credits

This package is based on the code from Vinicius Mesquita, and has been adapted by Guillaume Goodwin (University of Edinburgh/ Universita di Padova) and Marina Ruiz Sánchez-Oro (University of Edinburgh).

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2022-02-04)

  • First release on PyPI.

0.2.0 (2022-02-07)

  • Fix dependency clashes

  • Implement command line functionality.

0.3.0 (2022-02-08)

  • Add missing packages

  • Update documentation

0.3.1 (2022-02-08)

  • Update documentation

0.3.2 (2022-02-08)

  • Fix xarray and rioxarray imports

0.3.3 (2022-02-08)

  • Update version in init file

0.3.4 (2022-02-08)

  • Update entry_points

0.3.5 (2022-02-08)

  • Fix package imports

0.3.6 (2022-02-08)

  • Fix more package imports

0.3.7 (2022-02-08)

  • Fix more package imports in init files

0.3.8 (2022-02-09)

  • Fix libraries imports

0.3.9 (2022-02-09)

  • Remove cartopy

0.4.1 (2022-02-09)

  • Add PyQt5

0.4.5 (2022-02-11)

  • Fix gdal compatibility issues (hopefully!) - add setuptools to install requirements and versions to all required packages.

  • Fix issues with the process_timeseries_files_pipeline.py script.

There are still some issues sometimes in some cases with cftime.

0.4.6 (2022-02-11)

  • Update gdal version to 2.2.2.

0.4.7 (2022-02-22)

  • Remove requirements.

  • Fix bug in monthly data download.

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

gpm_precipitation_tools-0.4.7.tar.gz (33.6 kB view details)

Uploaded Source

Built Distribution

gpm_precipitation_tools-0.4.7-py2.py3-none-any.whl (30.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file gpm_precipitation_tools-0.4.7.tar.gz.

File metadata

  • Download URL: gpm_precipitation_tools-0.4.7.tar.gz
  • Upload date:
  • Size: 33.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.6

File hashes

Hashes for gpm_precipitation_tools-0.4.7.tar.gz
Algorithm Hash digest
SHA256 74377d635eb72ff6559aeeabd041c3dde10a2ee49e50713f461d51fa4dc41bc8
MD5 7308603e2e1dae36255b76968717d098
BLAKE2b-256 3de652e78bced0b756a9de58a1e3d03450dd038a95b6e5ba02de3a17986a0b9d

See more details on using hashes here.

File details

Details for the file gpm_precipitation_tools-0.4.7-py2.py3-none-any.whl.

File metadata

  • Download URL: gpm_precipitation_tools-0.4.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.6

File hashes

Hashes for gpm_precipitation_tools-0.4.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1d923b4a4bfad4f5464f59ee78736383042d77b493332d5e9b0302a83ed64728
MD5 94dd8a429efbca303e8e9d78d3133042
BLAKE2b-256 4537a6f9bb1740efd5e983f5b777fc1935272f5fddbfa2890716282e3110fb5c

See more details on using hashes here.

Supported by

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