Automate HMS Runs and Cumulus Grid Pull: Complete Guide

hms automated runs n.w
1 / 30
Embed
Share

Learn how to completely automate HMS runs and major steps through scripts, automate Cumulus grid pull, create tokens, and build Cumulus scripts for data acquisition. Ensure efficiency by setting up tasks using Windows Task Scheduler for seamless automation.

  • Automation
  • HMS
  • Cumulus Grid
  • Scripts
  • Data Acquisition

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. HMS Automated Runs Fauwaz Hanbali Alex Flanigan

  2. Goal: Completely Automate HMS run Major steps / scripts Automate Cumulus grid pull Rename Grids (get QPF and QPE F parts to match) Modify start time/end time in HMS forecast file Run HMS Use Windows Task Scheduler to automate all 3 steps

  3. Copy of scripts

  4. C:/Users/yourID/AppData/Roaming

  5. Automate Cumulus Grid Pull https://cumulus.rsgis.dev/ Create Cumulus private key

  6. Automate Cumulus Grid Pull Create a token Provides public and private key do not lose private key

  7. Automate Cumulus Grid Pull C:\Users\G6EDXAJF\AppData\Roaming\filename.txt Two-line file listing PUBLIC KEY FIRST and PRIVATE KEY SECOND

  8. Automate Cumulus Grid Pull PY Build Cumulus Script Get basin ID-name from https://cumulus-api.rsgis.dev/watersheds [{"id":"94e7713a-ccd6-432d-b2f0- 972422511171","office_symbol":"LRB","slug":"genesee- river","name":"Genesee River","area_groups":[],"bbox":[1428000,2230000,1508000,2400000]} Get Data types from https://cumulus-api.rsgis.dev/acquirables Or use list in example script.

  9. Automate Cumulus Grid Pull PY Enter your basin and data type into DataDict at the beginning of the script

  10. Automate Cumulus Grid Pull PY Set basin name and output folder

  11. Automate Cumulus Grid Pull PY OBS Data Set timewindow Set DataType Build data call Execute command

  12. Automate Cumulus Grid Pull PY FCST Data No timewindow needed Set DataType Build data call Execute command

  13. Automate Cumulus Grid Pull PY Text Files Update file locations for output txt files

  14. Automate Cumulus Grid Pull Make cmd Make .cmd file to call the Cumulus python script

  15. Automate Cumulus Grid Pull Finished

  16. Rename Grids PY (Match QPF and QPE F parts) Set pathway to dss output location

  17. Rename Grids PY (Match QPF and QPE F parts) Verify this number matches your metVue version in APPData

  18. Rename Grids PY (Match QPF and QPE F parts) Update the fields to match your data

  19. Rename Grids (Match QPF and QPE F parts) Update file locations for output txt files

  20. Rename Grids - Make cmd Make .cmd file to call the Metvue python script

  21. Run HMS python script Update paths and Set lookback and forecast period

  22. Run HMS python script Program rewrites forecast file with current dates Update model location Update forecast name

  23. Run HMS cmd script Build cmd script to call py script

  24. Script connection Scripts wait until previous script writes successful txt file before running

  25. Task Scheduler

  26. Task Scheduler

  27. Task Scheduler

  28. Task Scheduler Cumulus script runs first Metvue and HMS scripts start 1 minute later. Repeat until previous script completes

  29. Review Automate Cumulus grid pull Rename Grids (get QPF and QPE F parts to match) Modify start time/end time in HMS forecast file Run HMS Use Windows Task Scheduler to automate all 3 steps

  30. Future development Automate state variable Improve HMS grid input variants

Related


More Related Content