#!/bin/bash

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

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