dem_flow_accumulation — DEM hydrology op

Data kinds: depthimage2d

Call: import demops; demops.dem_flow_accumulation(dem, cell_size, fill=True, epsilon=1e-06, nodata='error') (or opsdem.get("dem_flow_accumulation"))

Usage

> This operator's description has not been translated yet. The original text follows as it is.

集水セル数。各セルへ流れ込む上流セルの個数(自セルを 1 と数える)。

`fill=True` なら先に窪地を埋める(埋めないと窪地で流れが止まり、

下流の集水量が静かに小さく出る)。欠測セルの集水量は `nan`。

グラフの構築はベクトル化してある。ただし効果は小さい: 1024x1024 で

2.71 秒 -> 2.39 秒。支配しているのは構築ではなく、そのあとのトポロジカル

走査(セル数ぶんの Python ループ)のほうだった。速くしたいならそこを

書き換える必要がある —— 直したつもりで直っていない、を残さないため明記する。

Detailed usage guide

dem_terrain_analysis family guide

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

poc_dem_terrainpy -3.11 examples/poc_dem_terrain.py

Ops the type connects to (they accept image2d as input)

Same category (hydrology)

dem_fill_sinks · dem_flow_direction · dem_stream_network


*Provenance: demops.py — DEM operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.