This branch accesses the new watershed-streams API and uses it to draw connectivity associated with a given watershed. It reads an "outlet" value from the watershed files when present, and uses that to query the API for stream connectivity within the watershed.
Streams aren't an exact match for the watershed (see image) because watersheds are defined differently by the BC Freshwater Atlas and the RVIC routing model
RVIC defines a watershed as all grid squares upstream of a selected point, but the Freshwater Atlas often defines a single river as multuplke watersheds. For example, the Upper Chilako is upstream of the Lower Chilako, but not considered part of the Lower Chilako watershed.
RVIC is lower resolution than the BC Freshwater Atlas
Here's the Lower Chilako. You can see a lot of the streams go outside the boundary of the watershed. I need to talk to hydrologists and find it if we'd like to trim the streams at the official boundary, as laid out by the BC Freshwater Atlas.
Minor functional changes to make before merging:
[ ] add the downstream API call to the map as well
[ ] make the streams and watershed boundary different colours
[ ] mark the outlet? Ask @mschnorb if this would be useful.
[ ] currently, due to rasterio issues, this frontend requires two different backends. Resolve those issues and make all PCEX API calls against a single backend
[ ] clip streams to watershed? Ask @mschnorb if this would be useful
This branch accesses the new
watershed-streams
API and uses it to draw connectivity associated with a given watershed. It reads an "outlet" value from the watershed files when present, and uses that to query the API for stream connectivity within the watershed.Streams aren't an exact match for the watershed (see image) because watersheds are defined differently by the BC Freshwater Atlas and the RVIC routing model
RVIC defines a watershed as all grid squares upstream of a selected point, but the Freshwater Atlas often defines a single river as multuplke watersheds. For example, the Upper Chilako is upstream of the Lower Chilako, but not considered part of the Lower Chilako watershed.
RVIC is lower resolution than the BC Freshwater Atlas
Here's the Lower Chilako. You can see a lot of the streams go outside the boundary of the watershed. I need to talk to hydrologists and find it if we'd like to trim the streams at the official boundary, as laid out by the BC Freshwater Atlas.
Minor functional changes to make before merging: