USGS-R / regional-hydrologic-forcings-ml

Repo for machine learning models for regional prediction of hydrologic forcing functions. Includes probabilistic seasonal high flow regions for CONUS, and prediction of high flow metrics for selected regions.
Creative Commons Zero v1.0 Universal
0 stars 4 forks source link

Handling sites without flood thresholds #175

Closed slevin75 closed 1 year ago

slevin75 commented 1 year ago

Discussed in https://github.com/USGS-R/regional-hydrologic-forcings-ml/discussions/43

Originally posted by **jds485** January 26, 2022 There are 28 GAGES sites without flood thresholds (NaN value). So that I can run the code, I'll assign a quantile threshold for these sites based on the daily flow values. But I'm interested in your thoughts on why these wouldn't have values. Maybe not enough peak flow data? > if(is.na(floodThreshold)){ > floodThreshold <- quantile(x = df_dv$discharge, probs = 0.66) > }