Skip to content

Commit c2188bf

Browse files
committed
Enable CDAT-migrated E3SM Diags
1 parent b90506f commit c2188bf

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
@@ -87,19 +87,9 @@ create_links_ts()
8787
YYYY=`printf "%04d" ${year}`
8888
for file in ${ts_dir_source}/${v}_${YYYY}*.nc
8989
do
90-
# Add this time series file to the list of files for cdscan to use
91-
echo ${file} >> ${v}_files.txt
90+
cp ${file} ${ts_dir_destination}/${v}_${YYYY}*.nc
9291
done
9392
done
94-
# xml file will cover the whole period from year1 to year2
95-
xml_name=${v}_${begin_year}01_${end_year}12.xml
96-
export CDMS_NO_MPI=true
97-
cdscan -x ${xml_name} -f ${v}_files.txt
98-
if [ $? != 0 ]; then
99-
cd {{ scriptDir }}
100-
echo "ERROR (${error_num})" > {{ prefix }}.status
101-
exit ${error_num}
102-
fi
10393
done
10494
cd ..
10595
}
@@ -114,13 +104,7 @@ create_links_ts_rof()
114104
mkdir -p ${ts_rof_dir_destination}
115105
cd ${ts_rof_dir_destination}
116106
v="RIVER_DISCHARGE_OVER_LAND_LIQ"
117-
xml_name=${v}_${begin_year}01_${end_year}12.xml
118-
cdscan -x ${xml_name} ${ts_rof_dir_source}/${v}_*.nc
119-
if [ $? != 0 ]; then
120-
cd {{ scriptDir }}
121-
echo "ERROR (${error_num})" > {{ prefix }}.status
122-
exit ${error_num}
123-
fi
107+
cp ${ts_rof_dir_source}/${v}_*.nc ${v}_*.nc
124108
cd ..
125109
}
126110

0 commit comments

Comments
 (0)