Open DanIredell-NOAA opened 2 years ago
INFO: ush/rtofs_atmforcing_stage.sh calls ush/rtofs_atmforcing_extract.sh. scripts/exrtofs_glo_grib2_post.sh calls the other 3 ush scripts (called ops_script)
Generally err_chk is not called when an ush script fails... mainly on EXECs.
rtofs_atmforcing_extract.sh calls WGRIB [see note]. I suppose that the return code can be checked on WGRIB. *WGRIB is only called when 'useslp' is YES. Generally it is not set that way.
The opc scripts (ush/rtofssurface*.sh) call cdo. ush/rtofs_nc2grib2.sh does as well. Neither of these scripts check for the return code from cdo.
Upshot - can add 'err=$?; export err; err_chk' to WGRIB and CDO, but that seems unnecessary.
Added _err=$?; export err ; errchk after calls to cdo and wgrib2
http://www2.spa.ncep.noaa.gov/bugzilla/show_bug.cgi?id=1141
Please improve err check for RTOFS ush scripts at next upgrade.
Bugzilla ticket is submitted for the following 4 ush scripts that don't have err handling. and the scripts calling them do not have an err check right after. rtofs_atmforcing_extract.sh rtofs_surface_day1-3.sh rtofs_surface_day4-5.sh rtofs_surface_hcasts.sh