Skip to content

Commit

Permalink
Enable CDAT-migrated E3SM Diags
Browse files Browse the repository at this point in the history
  • Loading branch information
forsyth2 committed Jan 15, 2025
1 parent b90506f commit c2188bf
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions zppy/templates/e3sm_diags.bash
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,9 @@ create_links_ts()
YYYY=`printf "%04d" ${year}`
for file in ${ts_dir_source}/${v}_${YYYY}*.nc
do
# Add this time series file to the list of files for cdscan to use
echo ${file} >> ${v}_files.txt
cp ${file} ${ts_dir_destination}/${v}_${YYYY}*.nc
done
done
# xml file will cover the whole period from year1 to year2
xml_name=${v}_${begin_year}01_${end_year}12.xml
export CDMS_NO_MPI=true
cdscan -x ${xml_name} -f ${v}_files.txt
if [ $? != 0 ]; then
cd {{ scriptDir }}
echo "ERROR (${error_num})" > {{ prefix }}.status
exit ${error_num}
fi
done
cd ..
}
Expand All @@ -114,13 +104,7 @@ create_links_ts_rof()
mkdir -p ${ts_rof_dir_destination}
cd ${ts_rof_dir_destination}
v="RIVER_DISCHARGE_OVER_LAND_LIQ"
xml_name=${v}_${begin_year}01_${end_year}12.xml
cdscan -x ${xml_name} ${ts_rof_dir_source}/${v}_*.nc
if [ $? != 0 ]; then
cd {{ scriptDir }}
echo "ERROR (${error_num})" > {{ prefix }}.status
exit ${error_num}
fi
cp ${ts_rof_dir_source}/${v}_*.nc ${v}_*.nc
cd ..
}

Expand Down

0 comments on commit c2188bf

Please sign in to comment.