com4FlowPy.com4FlowPy.tileInputLayers

tileInputLayers(modelParameters, modelPaths, rasterAttributes, tilingParameters)[source]

computes the number of tiles (_tileCols, _tileRows) and tileOverlap (_U) based on input layer dimensions and tilingParameters, divides all used input layers into tiles and saves the tiles to the temp folder

the function is a wrapper around the code in splitAndMerge.py, where the actual tiling is handled.

Parameters
  • modelParameters (dict) – model input parameters (from .ini - file)

  • modelPaths (dict) – contains paths to input files

  • rasterAttributes (dict) – contains (header) information about the rasters (that are the same for all rasters)

  • tilingParameters (dict) – parameters relevant for tiling (from .ini - file)

Returns

nTiles – nTiles[0]: maximum index of tiles along rows nTiles[1]: maximum index of tiles along columns actual number of tiles = (nTiles[0] + 1) * (nTiles[1] + 1)

Return type

tuple