Commit c9e80a59 authored by chrisdane's avatar chrisdane

try: add_to work

parent 9e10116b
......@@ -523,15 +523,13 @@ fesom_cleanup()
if files=$(ls *_fesom_${START_DATE_fesom}.nc 2>/dev/null); then
for file in $files; do
# Christoper Danek
#
# fix filenames that get moved from work/ to outdata/fesom/
#
# fesoms output filenames are constructed in fesom_cpl/g_meandata.F90:
# CD: fix filenames that get moved from work/ to outdata/fesom/
# fesom 1.4 filenames are constructed in fesom_cpl/g_meandata.F90:
# filename=trim(ResultPath)//this%name//'_'//runid//'_'//firstdate//'.nc'
# where 'this%name' is the variable name according to the yaml list
# substream=`echo $file | cut -d_ -f1` # here, e.g. virtual_salt is not considered
substream=${file%$"_fesom"*} # actually, 'fesom' is 'runid' from namelist.config
# (actually, 'fesom' is 'runid' from namelist.config but always set to 'fesom')
# substream=`echo $file | cut -d_ -f1` does not consider 'virtual_salt' due to the '_'
substream=${file%$"_fesom"*}
if output_files=$(ls ${substream}_fesom_*.nc 2>/dev/null); then
for ofile in $output_files; do
add_to ${WORK_DIR}/${ofile} ${EXP_ID}_${ofile} output
......
......@@ -204,7 +204,7 @@ jsbach_modify_forcing() {
echo -e "\t\t jsbach: selecting year $yr from ${FORCING_DIR_jsbach}/Ndepo.1850-2014.nc"
cdo selyear,${yr} ${FORCING_DIR_jsbach}/Ndepo.1850-2014.nc ${FORCING_DIR_jsbach}/foo${yr}.nc >> $dumpfile 2>&1
mv ${FORCING_DIR_jsbach}/foo${yr}.nc ${FORCING_DIR_jsbach}/Ndepo.${yr}.nc >> $dumpfile
add_to ${FORCING_DIR_jsbach}/Ndepo.${yr}.nc Ndepo.${yr}.nc
add_to ${FORCING_DIR_jsbach}/Ndepo.${yr}.nc Ndepo.${yr}.nc work
done
;;
1950)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment