#!/usr/bin/env bash
#SBATCH --nodes=1                # node count
#SBATCH --ntasks=1               # total number of tasks across all nodes
#SBATCH --cpus-per-task=1        # cpu-cores per task (>1 if multi-threaded tasks)
#SBATCH --mem-per-cpu=4G         # memory per cpu-core (4G is default)
#SBATCH --time=24:00:00          # total run time limit (HH:MM:SS)
#SBATCH --mail-type=all        # send email when job begins/ends/fails
#SBATCH --mail-user=wenchang@princeton.edu
# Wenchang Yang (wenchang@princeton.edu)
# Thu Dec 16 11:06:33 EST 2021
set -ve
cmd=./get_RH.py
daname=sst
echo
#for expname in hist-nat hist-GHG; do
for expname in historical; do
    for hem in NH SH; do 
        if [ $hem == 'NH' ]; then
            for season in ASO JJASO; do
                echo $expname $hem $season
                nohup $cmd $expname $hem $season >> nohup.out.$daname.$expname.$hem.$season.log &
            done
        elif [ $hem == 'SH' ]; then
            for season in FMA DJFMA; do 
                echo $expname $hem $season
                nohup $cmd $expname $hem $season >> nohup.out.$daname.$expname.$hem.$season.log &
            done
        fi
    done
done
