lic_extended.process_geotiff_in_block_with_overlap#

process_geotiff_in_block_with_overlap(MNT_input_path: str, output_path: str, processing_function, block_size: int = 2000, overlap: int = 20, **kwargs) None[source]#

Processes a GeoTIFF file in overlapping blocks and applies a user-defined processing function.

Parameters:
  • MNT_input_path (str) – Path to the input GeoTIFF file containing the Digital Elevation Model (DEM).

  • output_path (str) – Path to the output GeoTIFF file.

  • processing_function (function) – A function that processes a single block. It should accept a block (ndarray), cell size, and any additional parameters.

  • block_size (int, optional) – Size of non-overlapping blocks (in pixels) to process. Default is 2000.

  • overlap (int, optional) – Size of the overlapping region (in pixels) between adjacent blocks. Default is 20.

  • **kwargs – Additional arguments passed to processing_function.

Returns:

The processed output is written directly to the specified GeoTIFF file.

Return type:

None