#!/bin/bash

#SBATCH --account=cpc-s2s
#SBATCH --qos=batch
#SBATCH -J zseason
##SBATCH --array=1-133           # 133 tasks (19 predictors * 7 models)
#SBATCH --nodes=1               # Each task needs exactly 1 node
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=40      # Use all 40 cores on the node
#SBATCH --time=08:00:00         # Each task has the full 8 hours
##SBATCH --mem=0                 # Use all memory on the node
#SBATCH -o zFcstRuns.out
#SBATCH -e zFcstRuns.err
#SBATCH --exclusive
#SBATCH --mail-user=zewdu.segele@noaa.gov
##SBATCH --mail-type=BEGIN,END,FAIL
#SBATCH --mail-type=FAIL

module purge
#module load spack-managed-x86-64_v3
module load spack-managed-x86-64_v3 r/4.4.0
module load contrib pyncl
module load netcdf-c/4.9.2
module load udunits/2.2.28

workingDir=`pwd`
Rscript $workingDir/multiNominalRegression.R
