#!/usr/bin/env bash
# Wenchang Yang (wenchang@princeton.edu)
# Tue Apr 15 06:35:22 PM EDT 2025
##SBATCH --nodes=1                # node count
##SBATCH --ntasks-per-node=1      # number of tasks per node
# 
#SBATCH --ntasks=1               # total number of tasks across all nodes = nodes x ntasks-per-node
#SBATCH --cpus-per-task=1        # cpu-cores per task (>1 if multi-threaded tasks)
#SBATCH --mem-per-cpu=16G         # 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
# 
##SBATCH --array=1-100#%32        # job array with index values 1, 2, ...,; max job # is 32 if specified
##SBATCH --output=slurm-%A.%a.out # stdout file
##SBATCH --error=slurm-%A.%a.err  # stderr file
#set -ev
##env settings
#export PATH=/tigress/wenchang/miniconda3/bin:$PATH
#export PYTHONPATH=/tigress/wenchang/wython
#export PYTHONUNBUFFERED=TRUE # see https://stackoverflow.com/questions/230751/how-to-flush-output-of-print-function
#export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK #for multi-threaded job
#ii_job=$SLURM_ARRAY_TASK_ID #for job array

#notshowfig=
notshowfig=notshowfig

#tp2d plot
for expname in \
    CTL1850_BC_L2_Y0011_tiger3_intel24ifort_openmpi_1536PE \
    CTL1850_BC_L6_Y0011_tiger3_intel24ifort_openmpi_1536PE \
    CTL1850_BC_L8_Y0011_tiger3_intel24ifort_openmpi_1536P \
    CTL1850_BC_lat0_L2_Y0011_tiger3_intel24ifort_openmpi_1536PE \
    CTL1850_BC_lat0_L6_Y0011_tiger3_intel24ifort_openmpi_1536PE; do
    for season in DJF MAM JJA SON; do
        ./wyplot_latp2d_SRM_AM4.1_season_linoz.py s o $notshowfig expname=$expname season=$season
    done
done
#./wyplot_latp2d_SRM_AM4.1_season.py daname=qo3 s o pct $notshowfig


make_html

#rsync to /projects
#rsync -avhP ./* /projects/w/wenchang/analysis/active_work/SRM/
