You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add “export err=$?; err_chk” after “ $WGRIB2 ../rtofs_glo.t00z.f0${last}_${instr}_std.grb2….” to fail the job when there is issue with wgrib2 input data file
add “export PS4='${last}-${stepnum}-${instr}: $SECONDS + ' ” for job logfile to be more readable and easy to troubleshoot for any issue.
http://www2.spa.ncep.noaa.gov/bugzilla/show_bug.cgi?id=1590
At next upgrade, please investigate to improve the RTOFS gempak scripts with the followings -
In scripts/exrtofs_glo_gempak.sh - update as below to make gempak job logfile more readable -
In the gempak/gempak.sh -
add “export err=$?; err_chk” after “$WGRIB2 ../rtofs_glo.t00z.f0$ {last}_${instr}_std.grb2….” to fail the job when there is issue with wgrib2 input data file
add “export PS4='${last}-${stepnum}-${instr}: $SECONDS + ' ” for job logfile to be more readable and easy to troubleshoot for any issue.
Sample of job logfile with above suggested updates /lfs/h1/ops/test/output/20240808/rtofs_global_gempak_alaska.o171489150 on Dogwood -
....
24-11-alaska: 10 + '[' -s grtofs_alaska_2024072300f011 ']'
24-11-alaska: 10 + cpfs grtofs_alaska_2024072300f011 /lfs/h1/ops/test/com/rtofs/v2.4/rtofs.20240723/gempak
24-12-alaska: 10 + echo
24-12-alaska: 10 + '[' -s grtofs_alaska_2024072300f012 ']'
24-12-alaska: 10 + cpfs grtofs_alaska_2024072300f012 /lfs/h1/ops/test/com/rtofs/v2.4/rtofs.20240723/gempak
24-09-alaska: 10 + '[' -s grtofs_alaska_2024072300f009 ']'
24-09-alaska: 10 + cpfs grtofs_alaska_2024072300f009 /lfs/h1/ops/test/com/rtofs/v2.4/rtofs.20240723/gempak
24-01-alaska: 10 + echo
24-01-alaska: 10 + '[' -s grtofs_alaska_2024072300f001 ']'
24-01-alaska: 10 + cpfs grtofs_alaska_2024072300f001 /lfs/h1/ops/test/com/rtofs/v2.4/rtofs.20240723/gempak
24-07-alaska: 10 + echo
24-07-alaska: 10 + '[' -s grtofs_alaska_2024072300f007 ']'
24-07-alaska: 10 + cpfs grtofs_alaska_2024072300f007 /lfs/h1/ops/test/com/rtofs/v2.4/rtofs.20240723/gempak
24-08-alaska: 10 + echo
24-08-alaska: 10 + '[' -s grtofs_alaska_2024072300f008 ']'
24-08-alaska: 10 + cpfs grtofs_alaska_2024072300f008 /lfs/h1/ops/test/com/rtofs/v2.4/rtofs.20240723/gempak
24-10-alaska: 10 + echo
24-10-alaska: 10 + '[' -s grtofs_alaska_2024072300f010 ']'
24-10-alaska: 10 + cpfs grtofs_alaska_2024072300f010 /lfs/h1/ops/test/com/rtofs/v2.4/rtofs.20240723/gempak
24-05-alaska: 10 + echo
24-05-alaska: 10 + '[' -s grtofs_alaska_2024072300f005 ']'
24-05-alaska: 10 + cpfs grtofs_alaska_2024072300f005 /lfs/h1/ops/test/com/rtofs/v2.4/rtofs.20240723/gempak
....
The text was updated successfully, but these errors were encountered: