import-cmip6-data-utils
Description
This package is used in order to download CMIP6 data thanks to a .csv search criteria file, filled with the facets for the search. The process from the search to the download is highly customisable thanks to a .toml config file, holding the parameters and options of the package. This can be done through a jupyter notebook for tuning the search and then in a python script to make your research reproducible by anyone.
It downloads individual .nc files of the requested variables and combines them to produce an importable dictionary of xarray Datasets of the same entry. An entry being an experiment_id, source_id and member_id tuple. This allows to confront experiments outputs from an ensemble.
Here are some of the options allowed by this package :
-
The CMIP6 data can be preprocessed in-place with the computation of a climatological mean for a provided frequency.
-
The results can be filtered to ensure that the downloaded outputs are from a provided ensemble (thanks to .csv filtering ensemble file) or that all the expected variables where found for the whole ensemble.
-
The reference information of the downloaded CMIP6 ensemble can be printed into a .csv file to give proper credit to the modellers.
It relies on the intake-egsf library to interact with the ESGF CMIP6 data nodes. You may consult their beginner guide.
It is decomposed into several sub-packages. In order to use it easily, you may check the raw notebook and python script associated to it. It is maintained in this repository.
Installation
You can install this package via the following command :
pip install import_cmip6_data_utils
You can then import it :
import import_cmip6_data_utils
CMIP6 data
This project allows for the downloading of data from the CMIP6. You may consult this documentation of the CMIP6 iniative.
Dependencies
This project uses the intake-egsf library. You may consult their beginner guide.
License
Copyright (C) 2026, IGE (France, UMR 5001), Lucas GIBONI.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
A copy of the GNU General Public License is available at the root folder of this repository in the LICENSE file. Here is an online version.
Authors and acknowledgment
This work was devised by Lucas Giboni, PhD Student at IGE, CNRS in Grenoble, France.
Interacting with the project
Contributing
Do not hesitate to contribute to this project by raising issues and associated branches. I'll check them for merging. The project can be found in this repository.
Roadmap
This is a package that now satisfying to me as it can be usede into a downloading script or a jupyter notebook. But it can always be improved I guess.
Support
You can get some help by sending me an email at : lucas.giboni@univ-grenoble-alpes.fr.
Metadata
Release files for import-cmip6-data-utils 3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| import_cmip6_data_utils-3.1.tar.gz | 52.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| import_cmip6_data_utils-3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 111.0 kB
Release files / import_cmip6_data_utils-3.1.tar.gz
| Download URL | import_cmip6_data_utils-3.1.tar.gz |
|---|---|
| Size | 52.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af32f61ba84492ab0c783e7d5edfa1e31e80995ebc68f7df1dac3a7e668db246
|
|
BLAKE2b-256 checksum How to use checksums |
bbc087077c0ba5beda962b7bff8b1b839dcc4cd0c4835b4745fc537d16620c17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / import_cmip6_data_utils-3.1-py3-none-any.whl
| Download URL | import_cmip6_data_utils-3.1-py3-none-any.whl |
|---|---|
| Size | 58.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fdb4de895febb3428d1ec63ba0f9b5b82bb146da1669d570a093c35794b8cd2c
|
|
BLAKE2b-256 checksum How to use checksums |
e181352bec3d56ba3ab5ed3cb051450b6be8470019dc1e145a4b885268c3faca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|