pacificclimate / scip-frontend

Salmon Climate Impacts Portal
GNU General Public License v3.0
1 stars 1 forks source link

I11 add streamflow networks to map #12

Closed corviday closed 2 years ago

corviday commented 2 years ago

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

  1. 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.

  2. 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. streams

Minor functional changes to make before merging:

corviday commented 2 years ago

Whoops, wrong merge target.