USDA-ARS-NWRC / smrf

SMRF was designed to increase the flexibility of taking measured weather data, or atmospheric models, and distributing the data across a watershed.
Other
12 stars 4 forks source link

Zero precip time period causes issue in nasde model #34

Closed micah-prime closed 7 years ago

micah-prime commented 7 years ago

smrf crashes at "if time == storm_start:" in marks2017 precip distribute method in runs with absolutely no precip. I think this is happening because it is entering this mass threshold part of the code when there is no precip, but still NaNs in the station data. some nansum and nanmean replacement for standard sum and mean may fix the issue.