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

Nan in Xinanjiang option #61

Open
lcunha0118 opened this issue May 19, 2022 · 2 comments
Open

Nan in Xinanjiang option #61

lcunha0118 opened this issue May 19, 2022 · 2 comments
Assignees

Comments

@lcunha0118
Copy link
Contributor

According to the NWM parameters, satdk and satpsi can be zero (for example, over water). When that is the case, max_tension_water_m and tension_water_m are zero, and runoff which is a function of tension_water_m/max_tension_water_m becomes NaN. See following line:

cfe/src/cfe.c

Line 580 in d47547c

pervious_runoff_m = water_input_depth_m * (1.0 - pow((0.5 + parms->a_Xinanjiang_inflection_point_parameter),

Current behavior

Output nan for runoff on the Xinanjiang_partitioning_scheme function

Expected behavior

I am not sure what is the best route for the solution here since satdk and satpsi equal to zero might not be realistic but have been used in previous versions of the NWM. If satdk and satpsi equal to zero are trying to represent impervious area, or water surface, then a different function of rainfall runoff conversion should be used (instead of the Xinanjiang_partitioning_scheme). Maybe a constant runoff ratio (0.95). Another option is to convert satdk or satpsi to a very small number within the code when they are zero.

Steps to replicate behavior (include URLs)

  1. The error was observed when satdk and satpsi are equal to zero in the configuration file.

Screenshots

@andywood
Copy link

andywood commented May 21, 2022 via email

@SnowHydrology
Copy link
Contributor

@andywood, that's a really good point you bring up. None of our implemented subsurface modules have logic implemented that would determine valid parameter values and/or whether they make sense for a given land cover type. In @lcunha0118's example, these are likely basins with water cells in the NWM. Noah-MP in the NWM would run these as lakes, meaning there is no issue caused by satdk = 0 or satpsi = 0. It is unlikely that a whole Nextgen basin is a lake (in most cases, at least), so we will need to identify a robust method moving forward.

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

No branches or pull requests

4 participants