-
Notifications
You must be signed in to change notification settings - Fork 0
/
getCycleVars.csh
executable file
·94 lines (73 loc) · 3.85 KB
/
getCycleVars.csh
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/csh -f
source config/filestructure.csh
source config/tools.csh
set prevCycleDate = `$advanceCYMDH ${thisCycleDate} -${CyclingWindowHR}`
#set nextCycleDate = `$advanceCYMDH ${thisCycleDate} ${CyclingWindowHR}`
setenv prevCycleDate ${prevCycleDate}
#setenv nextCycleDate ${nextCycleDate}
## setup cycle directory names
set CyclingDADirs = (${CyclingDAWorkDir}/${thisCycleDate})
set BenchmarkCyclingDADirs = (${BenchmarkCyclingDAWorkDir}/${thisCycleDate})
set CyclingDAInDir = $CyclingDADirs[1]/${bgDir}
set CyclingDAOutDir = $CyclingDADirs[1]/${anDir}
set prevCyclingDADir = ${CyclingDAWorkDir}/${prevCycleDate}
set CyclingFCDir = ${CyclingFCWorkDir}/${thisCycleDate}
set prevCyclingFCDir = ${CyclingFCWorkDir}/${prevCycleDate}
set ExtendedFCDir = ${ExtendedFCWorkDir}/${thisCycleDate}
set memDir = /mean
set MeanBackgroundDirs = (${CyclingDAInDir}${memDir})
set MeanAnalysisDirs = (${CyclingDAOutDir}${memDir})
set ExtendedMeanFCDirs = (${ExtendedFCDir}${memDir})
set VerifyEnsMeanBGDirs = (${VerificationWorkDir}/${bgDir}${memDir}/${thisCycleDate})
set VerifyMeanANDirs = (${VerificationWorkDir}/${anDir}${memDir}/${thisCycleDate})
set VerifyMeanFCDirs = (${VerificationWorkDir}/${fcDir}${memDir}/${thisCycleDate})
#set BenchmarkVerifyEnsMeanBGDirs = (${BenchmarkVerificationWorkDir}/${bgDir}${memDir}/${thisCycleDate})
#set BenchmarkVerifyMeanANDirs = (${BenchmarkVerificationWorkDir}/${anDir}${memDir}/${thisCycleDate})
#set BenchmarkVerifyMeanFCDirs = (${BenchmarkVerificationWorkDir}/${fcDir}${memDir}/${thisCycleDate})
set CyclingRTPPInflationDir = ${RTPPInflationWorkDir}/${thisCycleDate}
set CyclingABEInflationDir = ${ABEInflationWorkDir}/${thisCycleDate}
set CyclingDAInDirs = ()
set CyclingDAOutDirs = ()
set CyclingFCDirs = ()
set prevCyclingFCDirs = ()
set ExtendedEnsFCDirs = ()
set VerifyBGPrefix = ${VerificationWorkDir}/${bgDir}
set VerifyBGDirs = ()
set VerifyANPrefix = ${VerificationWorkDir}/${anDir}
set VerifyANDirs = ()
set VerifyEnsFCDirs = ()
set BenchmarkVerifyBGPrefix = ${BenchmarkVerificationWorkDir}/${bgDir}
set BenchmarkVerifyBGDirs = ()
set BenchmarkVerifyANPrefix = ${BenchmarkVerificationWorkDir}/${anDir}
set BenchmarkVerifyANDirs = ()
set BenchmarkVerifyEnsFCDirs = ()
set member = 1
while ( $member <= ${nEnsDAMembers} )
set memDir = `${memberDir} $DAType $member`
set CyclingDAInDirs = ($CyclingDAInDirs ${CyclingDAInDir}${memDir})
set CyclingDAOutDirs = ($CyclingDAOutDirs ${CyclingDAOutDir}${memDir})
set CyclingFCDirs = ($CyclingFCDirs ${CyclingFCDir}${memDir})
set prevCyclingFCDirs = ($prevCyclingFCDirs ${prevCyclingFCDir}${memDir})
set ExtendedEnsFCDirs = ($ExtendedEnsFCDirs ${ExtendedFCDir}${memDir})
set VerifyANDirs = ($VerifyANDirs ${VerifyANPrefix}${memDir}/${thisCycleDate})
set VerifyBGDirs = ($VerifyBGDirs ${VerifyBGPrefix}${memDir}/${thisCycleDate})
set VerifyEnsFCDirs = ($VerifyEnsFCDirs ${VerificationWorkDir}/${fcDir}${memDir}/${thisCycleDate})
set BenchmarkVerifyANDirs = ($BenchmarkVerifyANDirs ${BenchmarkVerifyANPrefix}${memDir}/${thisCycleDate})
set BenchmarkVerifyBGDirs = ($BenchmarkVerifyBGDirs ${BenchmarkVerifyBGPrefix}${memDir}/${thisCycleDate})
set BenchmarkVerifyEnsFCDirs = ($BenchmarkVerifyEnsFCDirs ${BenchmarkVerificationWorkDir}/${fcDir}${memDir}/${thisCycleDate})
@ member++
end
set ObsDiagnosticsDir = diagnostic_stats/obs
set ModelDiagnosticsDir = diagnostic_stats/model
set ObsCompareDir = Compare2Benchmark/obs
set ModelCompareDir = Compare2Benchmark/model
# Universal time info for namelist, yaml etc
# ==========================================
set yy = `echo ${thisValidDate} | cut -c 1-4`
set mm = `echo ${thisValidDate} | cut -c 5-6`
set dd = `echo ${thisValidDate} | cut -c 7-8`
set hh = `echo ${thisValidDate} | cut -c 9-10`
set fileDate = ${yy}-${mm}-${dd}_${hh}.00.00
set NMLDate = ${yy}-${mm}-${dd}_${hh}:00:00
set ConfDate = ${yy}-${mm}-${dd}T${hh}:00:00Z
set ICfileDate = ${yy}-${mm}-${dd}_${hh}