Skip to content

senbygg_improved.pyΒΆ

Contains the validated detector primitives used by the recommended workflow.

Algorithm: build candidate footprint pixel series, drop configured winter months, fit a two-harmonic seasonal baseline on history, compute monitoring residuals, score positive residuals only, fuse VV/VH, trigger after consecutive scenes above threshold, and apply durability filtering.

Recommended config:

RECOMMENDED_CONFIG = dict(
    n_harm=2,
    directional=True,
    durability_n=2,
    z_threshold=2.0,
    persistence_n=3,
    winter_months={12, 1, 2},
    poly_agg="p75",
)

poly_agg="p75" emphasizes a construction response within part of the footprint without behaving like a noisy pure maximum.