#!/bin/bash

##### for target domains in West Africa
#latS=12.0
#latN=17.0
#lonW=342.0  #-18 + 360
#lonE=349.0    # -11 +360

##### Target Domain Eastern Africa
latS=2.5
latN=16.0
lonW=32.5
lonE=48.

#### SST Domain for Western Africa climate (Atlantic, Pacific)  
#lonWeof=130. 
#lonEeof=340.
#latSeof=-20.
#latNeof=20.

#### SST Domain for Eastern Africa climate (Indian OCean, Pacific, Atlantic) 
lonWeof=50. 
lonEeof=340.
latSeof=-20.
latNeof=20.

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

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

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

currentyr=2026
seasonname="JAS"

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

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

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

### Diagnostics
printProb=False
printProbRaw=False

#Diagnostic Domain for Senegal
#tlats=15
#tlatn=16.
#tlonw=345.0
#tlone=346.0

#Diagnostic domain for Ethiopia
tlats=7.
tlatn=9. 
tlonw=39.0 
tlone=40.0 

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

allmodelNames=(canesm5 gem5nemo nasa ccsm4 cfsv2 cesm1 ensmean)

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)

####################
