#!/bin/bash

cat > mysbatchPlot  <<EOF
#!/bin/bash
#SBATCH --account=cpc-s2s
#SBATCH --qos=batch
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH -J finalPlots
#SBATCH --time=01:00:00         
#SBATCH -o zallplots.out
#SBATCH -e zallplots.err
#SBATCH --exclusive
#SBATCH --mail-user=zewdu.segele@noaa.gov
##SBATCH --mail-type=BEGIN,END,FAIL
#SBATCH --mail-type=FAIL

module purge
module load contrib pyncl
EOF

cat mysbatchPlot allSetParams.sh allFinalPlots.sh > submitPlots.sh

