Coder Social home page Coder Social logo

download_tool_cmip's Introduction

download_tool_CMIP

Some tools to help download CMIP6 data from the ESGF pyclient (https://esgf-pyclient.readthedocs.io/_/downloads/en/latest/pdf/).

Installation

Create an environment ESGF to run the code :

conda create -n ESGF -c conda-forge esgf-pyclient pip numpy configparser

conda activate ESGF

pip install myproxyclient

INPUT FILE

To make a request you have to complete both .def files:

  • config.def with your IDs
  • search.def with the parameter of your request

config.def

openid = your_id password = your_password

(Create an account on https://esgf-node.llnl.gov/login/)

/!\ write in your terminal: chmod 600 config.def so other user cannot see your password

search.def

  • Name of the json file that will contain all the model/member compatible with your request
    dfile = my_request.json

  • list of the experiment you consider
    experiments = historical ssp585

  • list of the variables you want to download
    variables = pr tasmax

  • directory where you want to save the downloads
    wrkdir = /dir/to/save/files/CMIP6

DOWNLOAD

Launch the search and save all the models/member with the experiments / variables you are interested in:
1 ) python 1_get_memberlist.py

Create the directory structure for the download and prepare the Script.bash file to download the files:
2 ) python 2_get_downloadfile.py

Launch the download:
3 ) python 3_download.py

During this third step, the download may be blocked due to the waiting of the server.
It may also stops after 8 hours (credentials available 8 hours).
You have to launch it again, it will pass the already downloaded files.

download_tool_cmip's People

Contributors

vschy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.