#!/bin/bash

YEAR=2000
LAST=2020
while [ "$YEAR" != "$((LAST+1))" ]; do 
   sed -i "s/$((YEAR-1))/${YEAR}/" ERA5download.py
   python ERA5download.py

   mv download.nc ERA5.GOTM.SUBNA.${YEAR}.nc
   YEAR=$((YEAR+1))
done
