Skip to content

Speed up ConMon data extraction - #221

Merged
EdwardSafford-NOAA merged 3 commits into
NOAA-EMC:developfrom
EdwardSafford-NOAA:feature/cm-spdup-220
Jul 10, 2026
Merged

EdwardSafford-NOAA merged 3 commits into
NOAA-EMC:developfrom
EdwardSafford-NOAA:feature/cm-spdup-220

Conversation

@EdwardSafford-NOAA

@EdwardSafford-NOAA EdwardSafford-NOAA commented Jul 9, 2026 •

Copy link
Copy Markdown
Collaborator

Improve performance of ConMon's data extraction by running the time_vert.sh and horz_hist.sh scripts as child sub-processes in dedicated spaces. Heretofore the two scripts were run serially. This change has significantly improved wall time performance reducing run times from an hour and change to ~15 min. on both ursa and wcoss2.

Testing has been done on wcoss2 using operational gfs data over the last 4 cycles. Output is as expected and wall times are significantly improved.

Closes #220

Make time_vert and horz_hist scripts run as background subprocesses.
Reduce wall time.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves Conventional Monitor (ConMon) data extraction wall time by parallelizing the time_vert.sh and horz_hist.sh extraction steps, aligning with Issue #220’s goal of reducing end-to-end runtime.

Changes:

  • Run time_vert.sh and horz_hist.sh concurrently in separate working directories to avoid scratch-file collisions.
  • Add per-script log capture for the parallel extraction runs.
  • Reduce batch scheduler walltime requests for the data extraction job (notably on ursa and wcoss2).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/Conventional_Monitor/nwprod/gdas_conmon/scripts/exgdas_atmos_conmon.sh Runs time/vertical and horizontal-history extraction scripts in parallel using dedicated work dirs and log files.
src/Conventional_Monitor/data_extract/ush/ConMon_DE.sh Updates scheduler submission walltime values for ursa and wcoss2 data extraction jobs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Conventional_Monitor/nwprod/gdas_conmon/scripts/exgdas_atmos_conmon.sh Outdated
Comment thread src/Conventional_Monitor/nwprod/gdas_conmon/scripts/exgdas_atmos_conmon.sh Outdated
Comment thread src/Conventional_Monitor/data_extract/ush/ConMon_DE.sh
Comment thread src/Conventional_Monitor/data_extract/ush/ConMon_DE.sh
Add quoted paths and modify scripts to resist failures if variables are
undefined.
@EdwardSafford-NOAA
EdwardSafford-NOAA marked this pull request as ready for review July 9, 2026 17:28

@RussTreadon-NOAA RussTreadon-NOAA left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, @EdwardSafford-NOAA . Reducing wall time from an hour to 15 minutes is significant. Thank you for running tests to confirm that the revised scripts yield results identical with the current (slower) scripts.

Approve.

@EdwardSafford-NOAA
EdwardSafford-NOAA merged commit c962f8f into NOAA-EMC:develop Jul 10, 2026
4 checks passed
@EdwardSafford-NOAA
EdwardSafford-NOAA deleted the feature/cm-spdup-220 branch September 14, 2026 14:26
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

Successfully merging this pull request may close these issues.

Modify ConMon data extraction to speed up wall time

3 participants