#!/bin/bash

echo `date`

##### for target domain in Central America 
latS=-13.5
latN=24.5
lonW=20.5
lonE=53.0
region="eAfrica"

#### SST Domain for Indian Ocean to the Atlantic
lonWeof=50.
lonEeof=340.
latSeof=-20.
latNeof=20.

##### Number of SST and Precip EOFs
numeof=6

#### Model intitial date and forecast period
startmon=5
sznlen=4
ilead=1

obsstartmon=$((ilead + startmon))
obsendmon=$((obsstartmon + sznlen - 1))

currentyr=2026
seasonname="JJAS"

#### For R
testLength=5
trainLength=30
leave3Out=TRUE
runserial=FALSE
obst="MSWEP"
#obst="LOCAL"

#### For ploting -- Change country
mycountry="ETH"  # Costa Rica
yrsstsc=1991
yrsstec=2020
WMOshpfiles="/work/noaa/cpc-s2s/zewdu/shpfiles/WMO_basemap.shp"
WMOshpfiles="/cpc/int_desk/IndianOcean/shpfiles/WMO_basemap.shp"

### For obsevations
firstyr=1991
endyr=2025
monthly=True
isstate=False
obsres=0.25
obsprecip="prec${seasonname}_${firstyr}-${endyr}${obst}.nc"

### Diagnostics
printProb=False
printProbRaw=False
#Diagnostic Domain for Costa Rica
tlats=9.
tlatn=10.
tlonw=40.0 
tlone=41.0 

#### For both R and NCL
###########
szn4mon=False
leadi=$ilead
leadf=$((ilead + sznlen - 1))

allmodelNames=(canesm5 gem5nemo nasa ccsm4 cfsv2 cesm1 ensmean)

###### Select from these
#allprdctors=(MGI ATL3 Nino34 WVG IOD SIOD PCS1 PCS2 PCS3 PCS4 PCS5 PCS6 PCR1 PCR2 PCR3 PCR4 PCR5 PCR6 ALLP_INT)

slctprdctors=(MGI ATL3 Nino34 WVG IOD SIOD PCS1 PCS2 PCS3 PCS4 PCS5 PCS6 PCR1 PCR2 PCR3 PCR4 PCR5 PCR6 ALLP_INT)
allprdctors=$slctprdctors
##############################################
