Skip to content

Commit 84a2b59

Browse files
committed
Enable CDAT-migrated E3SM Diags
1 parent 69fe79d commit 84a2b59

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

zppy/templates/e3sm_diags.bash

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,9 @@ create_links_ts()
101101
YYYY=`printf "%04d" ${year}`
102102
for file in ${ts_dir_source}/${v}_${YYYY}*.nc
103103
do
104-
# Add this time series file to the list of files for cdscan to use
105-
echo ${file} >> ${v}_files.txt
104+
cp ${file} ${ts_dir_destination}/${v}_${YYYY}*.nc
106105
done
107106
done
108-
# xml file will cover the whole period from year1 to year2
109-
xml_name=${v}_${begin_year}01_${end_year}12.xml
110-
export CDMS_NO_MPI=true
111-
cdscan -x ${xml_name} -f ${v}_files.txt
112-
if [ $? != 0 ]; then
113-
cd {{ scriptDir }}
114-
echo "ERROR (${error_num})" > {{ prefix }}.status
115-
exit ${error_num}
116-
fi
117107
done
118108
cd ..
119109
}
@@ -128,13 +118,7 @@ create_links_ts_rof()
128118
mkdir -p ${ts_rof_dir_destination}
129119
cd ${ts_rof_dir_destination}
130120
v="RIVER_DISCHARGE_OVER_LAND_LIQ"
131-
xml_name=${v}_${begin_year}01_${end_year}12.xml
132-
cdscan -x ${xml_name} ${ts_rof_dir_source}/${v}_*.nc
133-
if [ $? != 0 ]; then
134-
cd {{ scriptDir }}
135-
echo "ERROR (${error_num})" > {{ prefix }}.status
136-
exit ${error_num}
137-
fi
121+
cp ${ts_rof_dir_source}/${v}_*.nc ${v}_*.nc
138122
cd ..
139123
}
140124

0 commit comments

Comments
 (0)