Skip to content

Commit

Permalink
move linked gocart files to a copy statement at the end of run
Browse files Browse the repository at this point in the history
due to crashes in gocart
  • Loading branch information
JessicaMeixner-NOAA committed Oct 14, 2023
1 parent 4c672eb commit 6a61d8a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,21 @@ GOCART_postdet() {
rm -f "${COM_CHEM_HISTORY}/gocart.inst_aod.${vdate:0:8}_${vdate:8:2}00z.nc4"
fi

#To Do: Temporarily removing this as this will crash gocart, adding copy statement at the end
#${NLN} "${COM_CHEM_HISTORY}/gocart.inst_aod.${vdate:0:8}_${vdate:8:2}00z.nc4" \
# "${DATA}/gocart.inst_aod.${vdate:0:8}_${vdate:8:2}00z.nc4"
done
}

GOCART_out() {
echo "SUB ${FUNCNAME[0]}: Copying output data for GOCART"

# Copy gocart.inst_aod after the forecast is run (and successfull)
# TO DO: this should be linked but there were issues where gocart was crashing if it was linked
for fhr in ${FV3_OUTPUT_FH}; do
local vdate=$(date --utc -d "${current_cycle:0:8} ${current_cycle:8:2} + ${fhr} hours" +%Y%m%d%H)
${NCP} "${DATA}/gocart.inst_aod.${vdate:0:8}_${vdate:8:2}00z.nc4" \
"${COM_CHEM_HISTORY}/gocart.inst_aod.${vdate:0:8}_${vdate:8:2}00z.nc4"
done
}

0 comments on commit 6a61d8a

Please sign in to comment.