Skip to content

Commit 6e651ee

Browse files
committed
fix pre-commit issue
1 parent 77a26ee commit 6e651ee

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

model_data_preprocess/postprocessing_E3SM_data_for_AR_analysis.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#===============================================================================
44
# E3SM Atmospheric River (AR) Detection and Analysis Script
55
#===============================================================================
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
88
# atmospheric rivers while filtering out tropical cyclones
99
#
1010
# Requirements:
@@ -78,21 +78,21 @@ if ${pg2}; then
7878
--res ${res} \
7979
--alt \
8080
--file "${result_dir}outCSMeshne${res}.g"
81-
81+
8282
GenerateVolumetricMesh \
8383
--in "${result_dir}outCSMeshne${res}.g" \
8484
--out "${result_dir}outCSne${res}.g" \
8585
--np 2 \
8686
--uniform
87-
87+
8888
out_type="FV"
8989
else
9090
echo " Using np4 grids (E3SM v1)..."
9191
GenerateCSMesh \
9292
--res ${res} \
9393
--alt \
9494
--file "${result_dir}outCSne${res}.g"
95-
95+
9696
out_type="CGLL"
9797
fi
9898

@@ -121,20 +121,20 @@ echo " Searching pattern: ${drc_in}/${caseid}.${atm_name}.h2.*{${start}..${end}
121121
for f in $(eval echo "${drc_in}/${caseid}.${atm_name}.h2.*{${start}..${end}}*.nc"); do
122122
if [ -f "$f" ]; then
123123
g=$(basename "$f")
124-
124+
125125
# Extract date portion from filename
126126
date_part="${g#${caseid}.${atm_name}.h2.}"
127127
date_part="${date_part%.nc}"
128-
128+
129129
# Define systematic output filenames
130130
ar_nofilt_file="${result_dir}ARtag_nofilt/${caseid}.${atm_name}.h2.${date_part}.ARtag_nofilt.nc"
131131
ar_filt_file="${result_dir}ARtag_filt/${caseid}.${atm_name}.h2.${date_part}.ARtag_filt.nc"
132-
132+
133133
# Append to file lists
134134
echo "$f" >> "${result_dir}inputfile_${file_name}.txt"
135135
echo "${ar_nofilt_file}" >> "${result_dir}ar_nofilt_files_out.txt"
136136
echo "${ar_filt_file}" >> "${result_dir}ar_filt_files_out.txt"
137-
137+
138138
((file_count++))
139139
fi
140140
done

0 commit comments

Comments
 (0)