NOAA-OWP / LGAR-C

Lumped Arid/Semi-arid Model (LASAM) simulates infiltration and surface runoff (two important components of the hydrologic cycle) based on Layered Green-Ampt with redistribution (LGAR) model
Other
1 stars 4 forks source link

giuh_time_scaling #10

Closed ajkhattak closed 1 year ago

ajkhattak commented 1 year ago

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

Removals

Changes

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

ajkhattak commented 1 year ago

@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 commented 1 year ago

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.

peterlafollette commented 1 year ago

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 commented 1 year ago

And thanks Phil for the suggestion!