Python utilities for climate data collection and management
Project description
Miranda
Python utilities for climate data collection, conversion, and management
Features
- Data collection functions for climate and forecast data hosted at:
ECMWF (ERA5, ERA5-Land, TIGGE)
ECCC (Canada) (Monthly Climate Summaries, ECCC GEOAPI - In development)
NCAR (CORDEX-NA on AWS)
- Data conversion for Climate and Forecasting (CF) Variable and Metadata compliance:
ECMWF (ERA5, ERA5-Land, TIGGE - In Development)
ECCC (Canada) (Flat File Observations, Monthly Climate Summaries, Adjusted and Homogenized Climate Data, ECCC GEOAPI - In Development)
MELCC (Québec)
Hydro-Québec (In Development)
- Database structuring and facets validation:
- Simulations:
WCRP (CMIP5, CMIP6, CMIP5-CORDEX, CORDEX-ADJUST, ISIMIP, etc.)
- Station-Observations:
MELCC (Québec) (Needs mdbtools installed)
ECCC (Canada) (In Development)
Hydro-Québec (In Development)
- Gridded-Observations:
NRCAN (Canada) (Future)
MELCC (Future)
- Reanalyses:
ECMWF (ERA5, ERA5-Land, TIGGE)
NASA (DayMET, AgMerra/AgCFSR, MERRA2) - In Development
NCEP (CFSR/CFSv2) - In Development
WFDEI-GEM-CaPa (University of Saskatchewan) - In Development
Installation
miranda is not yet available on PyPI, so the suggested method to install is as follows:
$ git clone git@github.com:Ouranosinc/miranda.git $ cd miranda # If using Anaconda: $ conda create -n miranda -f environment.yml $ conda activate miranda $ pip install miranda[full]
miranda also relies on PyESSV for its climate data controlled vocabulary. This library requires additional installation steps:
$ mkdir -p ~/.esdoc $ git clone git@github.com:ES-DOC/pyessv-archive.git ~/.esdoc/pyessv-archive
- We strongly suggest using Anaconda3/miniconda3 (with the conda-forge repository enabled) to manage your environment and dependencies
conda-forge: https://conda-forge.org/#about
Contributing
See the contributing documentation: https://miranda.readthedocs.io/en/latest/contributing.html
Documentation
The full documentation is at https://miranda.readthedocs.io/en/latest.
History
0.3.0 (2022-11-24)
Contributors to this version: Trevor James Smith (@Zeitsperre), Pascal Bourgault (@aulemahal), David Huard (@huard), Travis Logan (@tlogan2000), Gabriel Rondeau-Genesse (@RondeauG), and Sébastien Biner (@sbiner).
Announcements
First public release on PyPI.
New features
- Dataset conversion tools (miranda.convert) use a JSON-definition file to dynamically populate metadata, run data quality checks, and convert units to CF-compliant standard. Supported datasets are:
ERA5/ERA5-Land (complete)
MELCC (stations) (beta)
ECCC (stations) (alpha)
NASA DayMet (WIP)
NASA AgMerra/AgCFSR (WIP)
Hydro Québec (stations) (WIP)
DEH (stations) (WIP)
WFDEI-GEM-CAPA (WIP)
Module (miranda.eccc) for ECCC station data and ECCC Adjusted and Homogenized Canadian Climate Data (AHCCD) conversion (WIP).
Module (miranda.ncar) for fetching interpolated CORDEX-NAM (22i/44i) from NCAR AWS data storage.
Module (miranda.ecmwf) for fetching ECMWF ERA5/-Land (single-levels, pressure-levels, monthly-means) datasets via CDSAPI.
Module (miranda.gis) for setting specific subsetting domains used when converting gridded datasets.
Modules (miranda.archive and miranda.remote) for performing data archiving actions locally and remotely (powered by fabric and paramiko) (WIP).
- Module (miranda.decode) for ingesting and parsing dataset metadata based on filename and dataset attributes. Supported datasets are:
miranda converted datasets
CMIP6
CMIP5
CMIP5-CORDEX
ISIMIP-FT
CanDCS-U6 (PCIC)
Module (miranda.structure) for create constructing file-tree databases based on YAML-defined metadata schemas (WIP).
Modules (miranda.cv and miranda.validators) for validating metadata using ESGF controlled vocabularies (taken from pyessv-archive) and schema definitions (powered by schema), respectively (WIP).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file miranda-0.3.0.tar.gz
.
File metadata
- Download URL: miranda-0.3.0.tar.gz
- Upload date:
- Size: 139.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.28.1 setuptools/65.3.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32a549016efe0cfad42eeb96b425ea239969b6b3cece87882f70d4153957aea7 |
|
MD5 | d60d0dc595e34ee1122c54a089b7937a |
|
BLAKE2b-256 | a7d88113d7eb1e17612b31591c1560a115f4b4374606be12dbd4e3427ac37d1c |
File details
Details for the file miranda-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: miranda-0.3.0-py3-none-any.whl
- Upload date:
- Size: 157.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.28.1 setuptools/65.3.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2fa7312cbf29ccbe85f015209a25cd93a510597ede0e639719c37ba9aabbdd1 |
|
MD5 | 797cc87a49a74d22359338d5340682e7 |
|
BLAKE2b-256 | 7c3822dd1a5fe8c68410d6ec44dd031313e961bf66c4686853a38b85a67bd76e |