-
Notifications
You must be signed in to change notification settings - Fork 4
Gage distance to outlet #121
Comments
Options from Lauren Koenig: I think the approach I would take is to densify the matched flowline, and then snap the gage site to the nearest densified point/node along the flowline. Then I think I could create a new linestring that is the most downstream one and compute the length of it (or, if the densified points were equally spaced, e.g. 1 m, you could probably just count up the nodes in between). This seems doable, although computing the distance may or may not work readily. Another option you could consider is to use the igraph package in R (there's a python version to) to coerce the network into a directed graph and compute distances between nodes that represent gage locations and downstream vertices. Also, I think 'riverdist' is meant for this sort of use case |
@ajsekell see thoughts from Lauren about how the distance from gage to catchment outlet could be done. Interested in your thoughts for this, too. |
the flow accumulation grids in nhd could also be useful. The most downstream grid cell in a catchment should have the highest fac value. with the gage snapped to the flowline, you now have 2 points along the flow line. you could split the flowline by those points and use rgeos::gLength in R, or gProject if you don't want to split the flowline. I've never used either of those but they look like they should work. i have not used nhdplusTools much unfortunately. might be a fun little project...i might do some experimenting later. |
just posting that i made a script that does this for 1 gage at a time, would need to be (easily) modified to do it for full list of gages. we can come back to it later. |
Compare drainage areas from NWIS ( |
Charlie: Could be an analysis post-processing evaluation instead of being used as a feature in the prediction model. |
Adding an attribute "distance of gage to catchment outlet, as proportion of reach length" could help to account for the error associated with using attributes that are computed for catchment outlets while gages are upstream of the outlet.
The text was updated successfully, but these errors were encountered: