girs.rast.raster.rasters_get_pixel_size

rasters_get_pixel_size(rasters, minmax='max')
Return union or intersection of pixel sizes
  • If minmax=’min’, return the intersection of the pixel sizes defined in the list of rasters. This corresponds to the smallest pixel size among all rasters.
  • If minmax=’max’, return the union of the pixel sizes defined in the list of rasters. This corresponds to the largest pixel size among all rasters.
Parameters:
  • rasters (list of raster file names or list of Raster instances, also both types in the same list) – list of rasters
  • minmax (str) – ‘min’ for intersection and ‘max’ for union
Returns:

pixel sizes (x, y): (number of columns, number of rows)

Return type:

tuple