wradlib.georef.raster.snap_resolution#
- wradlib.georef.raster.snap_resolution(extent, target)[source]#
Snap an integer resolution so it evenly divides the extent, staying close to the target.
This function finds the closest integer resolution that divides the given extent exactly, while minimizing the difference from the desired target resolution.