-
Notifications
You must be signed in to change notification settings - Fork 0
/
makeAllComp.pro
39 lines (31 loc) · 1.05 KB
/
makeAllComp.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
; #########################################################################
;
; This code is a wrapper to call compositeEvents.pro.
;
; #########################################################################
@compositeEvents.pro
dirOUT = '/data/dswales/NA-CORDEX/ARdet/composites/'
dirIN = '/data/dswales/NA-CORDEX/ARdet/events/'
; RCMs
models = ['erain','mpi','gfdl','hadgem']
nmods = n_elements(models)
; Model resolution
res = '50'
; IVT threshold(s) (percentile)
ivtThresh = [95.00,96.00,97.00,98.00,99.00]
nithresh = n_elements(ivtThresh)
; Persistence threshold(s) (hours)
pthresh = [24,36]
npthresh = n_elements(pthresh)
for ij=0,nmods-1 do begin
for ik=0,nIthresh-1 do begin
for il=0,npthresh-1 do begin
print,'########################################################'
print,models(ij),ivtThresh(ik),pThresh(il)
compositeEvents,dirIN,dirOUT,models(ij),ivtThresh(ik),res,pThresh(il),0
if (ij ne 0) then compositeEvents,dirIN,dirOUT,models(ij),ivtThresh(ik),res,pThresh(il),1
end
end
end
; END PROGRAM
end