alsdb.processing.chm.compute_all#

alsdb.processing.chm.compute_all(provider: TileDBProvider, store: ALSZarrStore, resolution: float = 1.0, bbox: tuple[float, float, float, float] | None = None, year: int | None = None, tile_size: float = 500.0, tile_buffer: float = 50.0, n_workers: int = 1, first_returns_only: bool = True, height_statistic: str = 'max', pit_fill: bool = True, overwrite: bool = False, dtm_method: str = 'tin') None[source]#

Compute DTM, DSM, and CHM in one call, writing all into store.

Uses a single TileDB query and a single HAG normalisation per tile, shared across all three products — avoiding the redundant work of calling each function separately. Products already present in the store for year are skipped unless overwrite=True.

Parameters:
  • provider – TileDB provider instance.

  • storeALSZarrStore target.

  • resolution – Grid cell size in metres.

  • bbox – Optional spatial filter (min_x, min_y, max_x, max_y).

  • year – Survey year filter.

  • n_workers (tile_size /) – Tiling parameters.

  • tile_buffer – Overlap buffer for filters.hag_delaunay (CHM only).

  • first_returns_only – Use only first returns for CHM (and DSM). See compute_chm.

  • overwrite – If False (default), skip products already present for year. If True, recompute everything regardless.