Skip to content

jgrooss/data-retrieval

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mss-data-retrieval

Scripts to get and process ERA5 data for MSS on Linux

CDS-API Setup

  1. Create an account at https://cds.climate.copernicus.eu/user/register
    Log into your account
  2. Navigate to https://cds.climate.copernicus.eu/api-how-to#install-the-cds-api-key
    Copy the content of the upper black box to the right and paste it into ~/.cdsapirc
  3. Accept https://cds.climate.copernicus.eu/cdsapp/#!/terms/licence-to-use-copernicus-products

Scripts Setup

  1. Clone this repository and move into it

    git clone https://github.com/Open-MSS/data-retrieval.git
    cd data-retrieval
    
  2. Make the shell scripts executable

    chmod +x ./bin/*.sh
    
  3. Install all requirements

    pip -r install requirements.txt
    
  4. Make sure cdo and nco are installed
    e.g. for Ubuntu/Debian

    sudo apt-get install cdo nco netcdf-bin
    
  5. Adjust the settings.config to your liking

Usage

  1. After completing both setups, you can use this script as follows:

    ./bin/get_data.sh <date> <time>
    

    For example, to get ERA5 data for March 2nd 2020 at 12 o'clock, use

    ./bin/get_data.sh 2020-03-02 12:00:00
    
  2. Done, copy the .nc files to your mss data directory and give them their appropriate suffix.
    Using the demodata for MSS, this is ~/mss/testdata and EUR_LL015 suffix.

    for file in ./mss/*.nc; do mv "$file" "${file/.nc/.EUR_LL015.nc}"; done
    mv ./mss/*.nc ~/mss/testdata
    

About

Tools for downloading and processing ECMWF data for use with MSS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 71.2%
  • Shell 28.8%