femic.lidar_hydrography

Terrain-derived stream candidates with explicit review caveats.

P79.4 derives screening-level D8 flow paths from a native DEM, compares them with an aligned public-hydrography reference, and writes a review manifest and caveat report. Candidates are not authoritative streams.

Functions

accumulate_d8_flow(elevation, downstream, valid)

Accumulate one cell of area downstream over a D8 network.

compare_stream_candidates(candidate_mask, ...)

Compare candidate and reference stream masks.

derive_d8_flow_direction(elevation, valid, ...)

Derive D8 flow directions and downstream flat indices.

derive_stream_candidates(source_dem_path, ...)

Derive screening stream candidates from a native DEM.

fill_dem_depressions(elevation, valid, *[, ...])

Fill depressions with a priority-flood pass.

write_stream_candidate_manifest(manifest, path)

Write the stream-candidate review manifest as JSON.

write_stream_candidate_review(manifest, path)

Write a human-readable caveat and review report.

Classes

StreamCandidateError

Raised when stream-candidate inputs or outputs are invalid.

StreamCandidateManifest(generated_utc, ...)

Review manifest for one terrain-derived stream-candidate build.

StreamCandidateResult(manifest, output_dir, ...)

Paths and manifest returned by a stream-candidate build.

StreamComparison(candidate_cells, ...[, ...])

Overlap metrics between candidate and reference stream masks.