in3Utils.geoTrans.checkOverlap

checkOverlap(toCheckRaster, refRaster, nameToCheck, nameRef, crop=False)[source]

Check if two rasters overlap

Parameters
  • toCheckRaster (2D numpy array) – Raster to check

  • refRaster (2D numpy array) – reference Raster

  • nameToCheck (str) – name of raster that might overlap

  • nameRef (str) – name of reference raster

  • crop (boolean) – if True, remove overlaping part and send a warning

Returns

toCheckRaster – if crop is True, return toCheckRaster without the overlaping part and send a warning if needed if crop is False, return error if Rasters overlap otherwise return toCheckRaster

Return type

2D numpy array