dblodgett-usgs / hygeo

https://dblodgett-usgs.github.io/hygeo/dev/
Creative Commons Zero v1.0 Universal
6 stars 1 forks source link

Incorrect mapping of gage site_no when a COMID is split #30

Closed hellkite500 closed 3 years ago

hellkite500 commented 3 years ago

image

Looking at this small subset of the coarse data you can see an NWIS site that appears to be at the outlet of cat-67. In the crosswalk, however you see

  "cat-67": {
    "COMID": "9731286.1",
    "outlet_COMID": 9731286
  }

This shows that the comid 9731286 was split, and indeed cat-68 shows the rest of that comid:

  "cat-68": {
    "COMID": "9731286.2",
    "site_no": "02146562",
    "outlet_COMID": 9731286
  }

I think this is an artifact of splitting at the gage to create the upstream catchment, but then the gage isn't logically mapped to that catchment.

dblodgett-usgs commented 3 years ago

Dang! That's a bug. Will take care of it quick now.

hellkite500 commented 3 years ago

This happens in all three of the upper gages seen in the picture, cat-27 -> cat-26, and cat-52 -> cat-34 are similarly affected.