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

Do we need to configure the targets.R code using dynamic branching? #182

Closed slevin75 closed 1 year ago

slevin75 commented 1 year ago

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

Originally posted by **slevin75** December 3, 2021 Help me think this through a little. I set up the repository using static branching which assumes we have a set list of gages and that all those gages will make it through the tar_map block without failing in some way. As I found out when I ran this for a larger portion of gages, this is problematic because if site has zero complete years, it will fail. There are some sites, which, even though they are in gagesII don't actually have any daily dishcarge or don't have peak flow in NWIS, so they will fail at different places. I ran into a couple other odd situations as well, which I just manually removed for that period of record analysis. So what we need is a data screener that gets the data and then, if there isn't enough data or whatever, that site is dropped and everything else keeps going. Is there a way to do that within the current set up or should this be reconfigured using dynamic branching? I'm starting to forget how dynamic branching works but I think it was able to accomodate that situation more easily than static branching.
slevin75 commented 1 year ago

jds485 on Dec 6, 2021 Maintainer As discussed in meeting, can use "Create issue from discussion" button (bottom right) to change to issue that moves the first few tar_map targets out of the map and writes a file with the gauges that we use in the new tar_map