Skip to content

Document VCA parameters with ecological rationale and default scenarios #28

@NewGraphEnvironment

Description

@NewGraphEnvironment

Problem

flooded's VCA (fl_valley_confine()) accepts many parameters that control floodplain delineation, but the package doesn't document what the parameter values mean ecologically or why specific defaults were chosen. Users must figure out on their own what flood_factor = 6 represents, why slope_threshold = 9, what cost_threshold = 2500 means physically, etc.

The full parameter set that shapes VCA output:

Parameter Current default/usage What it controls
flood_factor varies (1-12) Depth multiplier on bankfull — defines which ecological zone
slope_threshold 9 Valley wall cutoff (degrees)
max_width 2000 Maximum valley width (m)
cost_threshold 2500 Cost-distance limit for flood spread
size_threshold 5000 Minimum patch size (cells)
hole_threshold 2500 Fill holes smaller than this (cells)
min_order 3 (scenario-dependent) Stream order filter for flood model
anchor_order 1 Stream order for patch connectivity
precip from map_upstream Mean annual precipitation raster — critical for bankfull regression

The rationale for these values is backed by hydrology/geomorphology literature (Beechie, Wheaton, Nagel, Rapp & Abbe, Hall, Zhang & Montgomery, etc.) and should live with the tool — not scattered across downstream project repos.

Proposed Solution

  1. Ship a default scenario table in inst/flood_scenarios.csv — columns: scenario_id, flood_factor, min_order, anchor_order, ecological_process, description, citations
  2. Document all VCA parameters with ecological rationale and literature backing — why these defaults? What happens when you change them?
  3. Add fl_scenarios() — loads the default table, users can override/extend
  4. Vignette with proper references covering the full parameter set

This is unusual for an R package but flooded is a scientific tool — the rationale IS the documentation. Anyone using VCA needs to understand what the parameters mean physically and ecologically.

Context

Currently working through this in restoration_wedzin_kwa_2024 (#123) where we're running 6 VCA scenarios at different flood_factors while holding other parameters constant. The literature review and parameter documentation should ultimately live upstream here in flooded.

Relates to NewGraphEnvironment/restoration_wedzin_kwa_2024#123

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