Code Monkey home page Code Monkey logo

hysplit_metdata's Introduction

hysplit_metdata_cds

Code to download ERA5 meteorological data from ECMWF that will suitable for converting to ARL format for ingestion into HYSPLIT. The downloaded grib files will be suitable for use with the era52arl program available with the HYSPLIT distribution. The era52arl program will be updated in the HYPSLIT repository as soon as the government shutdown ends.

hysplit_metdata_cds uses cdsapi module from Copernicus Data Service. ERA5 will soon only be available through the cdsapi. If you are using ecmwf-api see below.

There may be a problem with the velocity fields on the pressure levels. See: https://confluence.ecmwf.int/pages/viewpage.action?pageId=127305868

PYTHON 3.x Written to run on linux operating system

This python program aids in retrieving meteorological variables from the ERA5 dataset which HYSPLIT needs. grib files can be input into the era52arl fortran utility program (provided with the HYSPLIT distrubtion) to create a meteorological file that can be used as input into HYSPLIT.

for command line options run with --help
The program will write a file called new_era52arl.cfg. This file can be used as an input into the era52arl conversion program. It should be renamed era52arl.cfg to be read automatically by the program.

Installing the CDS API

This script requires the cdsapi to be available to your PYTHONPATH. The best way is to install it via pip and the provided requirements.txt file. This should install all necessary requirements at once. just execute the following on your command line.

cd hysplit_metadata
pip install -r requirements.txt

The CDS API will not work out of the box. Instead it requires an access token which has to be requested from the CDS. The way how to receive the access token is described at https://cds.climate.copernicus.eu/api-how-to.

hysplit_metdata uses the ecmwf-api

Installing ecmwfapi module

For instructions on creating an ecmwf account and retrieving a key see
[https://software.ecmwf.int/wiki/display/WEBAPI/Accessing+ECMWF+data+servers+in+batch]

The api key must be stored in the $HOME/.ecmwfapirc file.
The api key can be found at [https://api.ecmwf.int/v1/key/]

You may also download the tar file from the webpage and place the ecmwfapi directory so that is in your PYTHONPATH or it can also be a subdirectory of the directory where get_era5.py is located.

If you have conda you can also install by conda install -c conda-forge ecmwf-api-client

hysplit_metdata's People

Contributors

amcz 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.