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

giuh_time_scaling #10

Merged
merged 3 commits into from
Jul 14, 2023
Merged

giuh_time_scaling #10

merged 3 commits into from
Jul 14, 2023

Conversation

ajkhattak
Copy link
Collaborator

The PR fixes GIUH time scaling reported in the issue. The giuh ordinates from percentage per hour are scaled to account for LGAR model timestep.

Additions

  • Modified the Initialized function to extend the GIUH array for the scaled values

Removals

  • None

Changes

  • no significant changes other than modified giuh array at the initialization time

Testing

  1. Done

Screenshots

The giuh runoff using the old code has a high peak and quick recession, while the new code (taking into account time scaling) has a lower peak and relatively smooth rising and falling limbs, which makes sense.

giuh_runoff_comparison

  • PR has an informative and human-readable title
  • Changes are limited to a single goal (no scope creep)
  • Code can be automatically merged (no conflicts)
  • Passes all existing automated tests
  • Reviewers requested with the Reviewers tool ➡️

@PhilMiller PhilMiller linked an issue Jul 13, 2023 that may be closed by this pull request
src/lgar.cxx Outdated Show resolved Hide resolved
src/lgar.cxx Outdated Show resolved Hide resolved
src/lgar.cxx Outdated Show resolved Hide resolved
@ajkhattak
Copy link
Collaborator Author

@PhilMiller Thanks Phil for your suggestions, they have been incorporated. please have a look and see if you have more suggestions. Although I added you as a reviewer by mistake, it turned out to be a useful mistake. Appreciate it!

@PhilMiller
Copy link
Contributor

You're welcome. I'm happy to help.

And no worries, you didn't accidentally add me as a reviewer - I'm a newcomer to the NWM enterprise, subscribed to activity on a bunch of the NOAA-OWP repositories. I skim whatever PRs I see come up as a way of gaining more fluency with the overall codebase.

Copy link
Contributor

@PhilMiller PhilMiller left a comment

Choose a reason for hiding this comment

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

I can't speak to the substance of the change, but the issue I saw is addressed, so no longer 'Request changes'

@peterlafollette
Copy link
Contributor

I tested it in ngen and standalone, both worked well. I played around with the GIUH ordinates and they did what I expected them to. Everything looks good.

@peterlafollette peterlafollette merged commit 114a7ba into master Jul 14, 2023
@peterlafollette
Copy link
Contributor

And thanks Phil for the suggestion!

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.

GIUH routing time units
3 participants