|
3 | 3 | #=============================================================================== |
4 | 4 | # E3SM Atmospheric River (AR) Detection and Analysis Script |
5 | 5 | #=============================================================================== |
6 | | -# |
7 | | -# Purpose: Post-process E3SM 6-hourly (h2) instantaneous output to detect |
| 6 | +# |
| 7 | +# Purpose: Post-process E3SM 6-hourly (h2) instantaneous output to detect |
8 | 8 | # atmospheric rivers while filtering out tropical cyclones |
9 | 9 | # |
10 | 10 | # Requirements: |
@@ -78,21 +78,21 @@ if ${pg2}; then |
78 | 78 | --res ${res} \ |
79 | 79 | --alt \ |
80 | 80 | --file "${result_dir}outCSMeshne${res}.g" |
81 | | - |
| 81 | + |
82 | 82 | GenerateVolumetricMesh \ |
83 | 83 | --in "${result_dir}outCSMeshne${res}.g" \ |
84 | 84 | --out "${result_dir}outCSne${res}.g" \ |
85 | 85 | --np 2 \ |
86 | 86 | --uniform |
87 | | - |
| 87 | + |
88 | 88 | out_type="FV" |
89 | 89 | else |
90 | 90 | echo " Using np4 grids (E3SM v1)..." |
91 | 91 | GenerateCSMesh \ |
92 | 92 | --res ${res} \ |
93 | 93 | --alt \ |
94 | 94 | --file "${result_dir}outCSne${res}.g" |
95 | | - |
| 95 | + |
96 | 96 | out_type="CGLL" |
97 | 97 | fi |
98 | 98 |
|
@@ -121,20 +121,20 @@ echo " Searching pattern: ${drc_in}/${caseid}.${atm_name}.h2.*{${start}..${end} |
121 | 121 | for f in $(eval echo "${drc_in}/${caseid}.${atm_name}.h2.*{${start}..${end}}*.nc"); do |
122 | 122 | if [ -f "$f" ]; then |
123 | 123 | g=$(basename "$f") |
124 | | - |
| 124 | + |
125 | 125 | # Extract date portion from filename |
126 | 126 | date_part="${g#${caseid}.${atm_name}.h2.}" |
127 | 127 | date_part="${date_part%.nc}" |
128 | | - |
| 128 | + |
129 | 129 | # Define systematic output filenames |
130 | 130 | ar_nofilt_file="${result_dir}ARtag_nofilt/${caseid}.${atm_name}.h2.${date_part}.ARtag_nofilt.nc" |
131 | 131 | ar_filt_file="${result_dir}ARtag_filt/${caseid}.${atm_name}.h2.${date_part}.ARtag_filt.nc" |
132 | | - |
| 132 | + |
133 | 133 | # Append to file lists |
134 | 134 | echo "$f" >> "${result_dir}inputfile_${file_name}.txt" |
135 | 135 | echo "${ar_nofilt_file}" >> "${result_dir}ar_nofilt_files_out.txt" |
136 | 136 | echo "${ar_filt_file}" >> "${result_dir}ar_filt_files_out.txt" |
137 | | - |
| 137 | + |
138 | 138 | ((file_count++)) |
139 | 139 | fi |
140 | 140 | done |
|
0 commit comments