Skip to content

fl_valley_width() #14

@NewGraphEnvironment

Description

@NewGraphEnvironment

Description

Per-pixel valley width calculation via distance transform + watershed segmentation. Optional analysis, lower priority.

Algorithm

  1. Distance transform on valley mask (distance to valley edge)
  2. Find local maxima (valley centerlines) via peak detection
  3. Watershed segmentation from maxima
  4. Assign width = 2 × distance at centerline for each segment

Inputs

  • valleys: SpatRaster (binary valley mask from fl_valley_confine)

Output

SpatRaster with valley width in meters per pixel.

Source reference

valley_confinement.py lines 614-678 (calculate_width block)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions