Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the RTOFS gempak scripts (#1590) #47

Open
DanIredell-NOAA opened this issue Nov 5, 2024 · 1 comment
Open

Improve the RTOFS gempak scripts (#1590) #47

DanIredell-NOAA opened this issue Nov 5, 2024 · 1 comment

Comments

@DanIredell-NOAA
Copy link
Contributor

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 -

  • 51 echo "./gempak.sh $last $stepnum $instr $outstr $COMOUTgempak > $instr.$stepnum.log 2>&1" >> mpirun.dat

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
....

@DanIredell-NOAA
Copy link
Contributor Author

Added echo statement to scritps/exrtofs_glo_gempak.sh.
Added export statement to gempak/gempak.sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant