Riverscapes / riverscapes-tools

Open-source Python 3.0 tools for the Riverscapes organization
https://tools.riverscapes.net/
GNU General Public License v3.0
10 stars 8 forks source link

Flow Line Attribution #834

Closed philipbaileynar closed 1 month ago

philipbaileynar commented 11 months ago

Goal

Enrich the main flow line output feature classes with attributes that we know our downstream models either need for processing or for symbology.

Note that the goal is to do this in such a way as to make the Riverscapes Context project (i.e. data) as generic as possible so other jurisdictions can use the patterns. The actual RSC code can be bespoke because it will never get run for these other jurisdictions.

Task

Feature Class Output Field name Example
Ecoregions IV ecoregion_iv 'Ponderosa Pine Highlands'
Ownership ownership 'BLM', 'DoD'
US State us_state 'MD', 'UT'
<Metadata>
    <Meta name="attribute_ecoregion">ecoregion_iv</Meta>
    <Meta name="attribute_ownership">ownership</Meta>
    <Meta name="attribute_us_state">us_state</Meta>
    <Meta name="attribute_fcode">fcode</Meta>
    <Meta name="attribute_totdasqkm">totdasqkm</Meta>
</Metadata>

TotDASqKm

We discussed using SI units (i.e. metres), but drainage areas can get very big. I think we might want to use SQ KM for drainage area. This is consistent with NHD and avoids massive floating point values at the mouth of big rivers. NHD chose these units for a reason...

philipbaileynar commented 7 months ago

@philipbaileynar check that the attributes exist. Close if true.