Quantcast
Channel: HYSPLIT Forum: hysplitbbs.arl.noaa.gov
Viewing all articles
Browse latest Browse all 202

Users • Re: Downloading one year ERA5 data

$
0
0
you can create a script to call get_era5_cds.py in a loop to get all the dates you want.
An example bash script is below.

CODE:

#!/bin/sh# Example bash script for retrieving ERA5 for a small area.# Author: Alice Crawford   Organization: NOAA/OAR/ARL# Example for downloading and converting ERA5 data on pressure levels# for a relatively small area.# python callMDL="python"#Location of get_era5_cds.pyPDL=$HOME/hysplit_metdatayear=2020#small area to retrieve# upper left lat/ upper left lon / lower right lat / lower right lon# NORTH/WEST/SOUTH/EASTarea="65/150/40/180"#directory to write files to.outdir='./'for month in '10'do     #for day  in   $(seq 23  22)     for day  in   23     do              echo "RETRIEVING  month $month day $day"              # retrieves pressure level files              $MDL ${PDL}/get_era5_cds.py  --3d -s enda  -y $year -m $month  -d $day --dir $outdir  -g  --area $area              # retrieves surface data files with all variables              $MDL ${PDL}/get_era5_cds.py  --2da -s enda  -y $year -m $month  -d $day --dir $outdir  -g  --area $area     donedone

Statistics: Posted by alicec — June 27th, 2024, 8:12 am



Viewing all articles
Browse latest Browse all 202

Trending Articles