Skip to content

Nan in Xinanjiang option #61

@lcunha0118

Description

@lcunha0118

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions