Powered by OpenAIRE graph
Found an issue? Give us feedback
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/ ZENODOarrow_drop_down
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
versions View all 2 versions
addClaim

cds_etccdi: CDS API python wrapper to download the Climate extreme indices and heat stress indicators derived from CMIP6 global climate projections.

Authors: Paola Petrelli;

cds_etccdi: CDS API python wrapper to download the Climate extreme indices and heat stress indicators derived from CMIP6 global climate projections.

Abstract

The cds_etccdi python code is an interface to the CDS api to download the Climate extreme indices and heat stress indicators derived from CMIP6 global climate projections ( CICERO_ETCCDI ) dataset from the Copernicus Climate Data Store (CDS). It uses a modified version of the CDS api which stops after a request has been submitted and executed. The target download url is saved and downloads are run in parallel by the code using the Pool multiprocessing module. As well as managing the downloads the code gets all the necessary information on available variables from local json configuration files. Before submitting a request the code will check that the file is not already available locally by quering a sqlite database. After downloading new files it is important to update the database to avoid downloading twice the same file. Files are first downloaded in a staging area, as the files come as archives, then untarred and moved to the final destination. Getting started Downloading cds download -i etccdi -t yr -pt b1961_1990 [-e historical -m access_cm2 -p cold_days -q] where the following arguments are required: i/index is the type of index etccdi or hsi t/tstep is the timstep (yr/mon/day) pt/product is the kind of product in the example with base period 1961-1990 And these arguments are optional. e/experiment - the experiment of the input CMIP6 data m/model - the model of the input CMIP6 data p/param - a specific variable name q/queue - is a flag to defer the download and create a request file instead Downloading using existing request file If you defer the download using the queue flag you can submit the request later using the scan subcommand. cds scan -f cds_request_20220704031336.json The request file is a json file that contains the arguments passed to the code previously. We used this option when doing a bulk downloads, so all requests can then be run and managed by a cron job. This repository contains an example of the bash wrapper we used: cds_wrapper.sh. Updating the database cds db [-i etccdi -t yr -pt b1961_1990] It will update the database looking specifically for files fitting the constraints. All arguments are optional, however running without any will scan the all directories and could be slower. The db sub-command is by default updating (or creating if not existing yet) a database of all the files already downloaded. Other functionalities are also available including the creation of a file list that can be used to setup an intake catalogue. Other options To see all the available options and arguments cds --help cds <sub-command> --help where sub-command are download, scan and db

For comments, questions and if you find a bug please open an issue on the GItHub repository. Disclaimer: the author assumes no responsibility or liability for any errors contained in the code or for its misuse. The code is provided on an `as is` basis.

Keywords

python, climate indices, CDS, CMIP6

  • BIP!
    Impact byBIP!
    selected citations
    These citations are derived from selected sources.
    This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    0
    popularity
    This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
    Average
    influence
    This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    Average
    impulse
    This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
    Average
    OpenAIRE UsageCounts
    Usage byUsageCounts
    visibility views 32
    download downloads 3
  • 32
    views
    3
    downloads
    Powered byOpenAIRE UsageCounts
Powered by OpenAIRE graph
Found an issue? Give us feedback
visibility
download
selected citations
These citations are derived from selected sources.
This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Citations provided by BIP!
popularity
This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
BIP!Popularity provided by BIP!
influence
This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Influence provided by BIP!
impulse
This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
BIP!Impulse provided by BIP!
views
OpenAIRE UsageCountsViews provided by UsageCounts
downloads
OpenAIRE UsageCountsDownloads provided by UsageCounts
0
Average
Average
Average
32
3