This tool downloads weather data from the ERA5 dataset (https://www.ecmwf.int/en/forecasts/dataset/ecmwf-reanalysis-v5) from CDS (https://cds.climate.copernicus.eu/) and converts the GRIB
files to ARL
files using the era52arl
tool, which is part of HYSPLIT (https://www.arl.noaa.gov/hysplit-2/).
Dependency management with poetry: https://python-poetry.org/docs/#installation
Set up the project interpreter:
# Create virtual environment (a local copy of python)
python3.9 -m venv .venv
# Activate virtual environment
source .venv/bin/activate
# Install dependencies
poetry install
-
Use the file
config.example.json
to create aconfig.json
file in your project directory for your setup -
Run the script
-
Either use the dates specified in
config.json
...python3.9 run.py
-
... or pass the date to use to the program as an inline parameter:
python3.9 run.py 20211016
-
Request will be cached in the cache/
directory. Please do not remove or empty this directory.