com7Regional.splitInputs.clipDEMByReleaseGroup
- clipDEMByReleaseGroup(dirList, inputDEM, outputDir, cfg)[source]
Clip the DEM to include all features in each release group. Returns an error if any feature in a group is isolated.
- Parameters
dirList (list) – List of dictionaries containing dirName, and geometries list
inputDEM (pathlib.Path) – Path to input DEM file
outputDir (pathlib.Path) – Path to output directory where clipped DEMs will be saved
cfg (configparser object) –
- Configuration settings containing:
- GENERAL.bufferSizefloat
Size of buffer to add around release areas Configuration settings
- Returns
groupExtents – Dictionary with dirName as key and (xMin, xMax, yMin, yMax) as value. The extents are reduced by one pixel on each side to ensure DEM extents are larger than clip extents of other input.
- Return type
dict