Repository navigation
STOFS-2D-Global ops mode: one 180 h forecast forcing segment (hourly, 121-180 h interpolated) - #72
Merged
Conversation
…ion between the 3-hourly GFS records after f120
…bracket files of interpolated records
There was a problem hiding this comment.
🟡 Changes recommended
The bracket-grid validation checks only array shape, allowing incompatible equal-sized grids to be interpolated silently.
1 open finding
What changed in this PR
Consolidates STOFS-2D-Global forecast forcing into one hourly 180-hour segment.
Changes:
- Replaces
fcst1/fcst2withfcst. - Interpolates non-native hours after forecast hour 120.
- Adds interpolation, fill-value, manifest, and failure tests.
| File | Description |
|---|---|
nos_utils/forcing/adcirc_met.py |
Implements unified forecast generation and interpolation. |
tests/test_adcirc_met.py |
Tests the new forecast behavior. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+722
to
+723
| if hi.variables["lat"].shape != lat.shape: | ||
| raise MetForcingError("{}: grid differs from {}".format(srcs[1], src)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
For STOFS-2D-Global ops mode,
build_sfcf_forcingreplaces segmentsfcst1(0-120 h hourly) andfcst2(120-180 h 3-hourly) with one segmentfcst: 181 hourly records over 0-180 h. It is used for a single 180 h forecast run.ncstis unchanged.Type of change
Change characteristics
<RUN>_fcst.{221,222,225}.ncreplaces the fcst1/fcst2 files.How has this been tested?
Checklist