in3Utils.geoTrans.checkOverlap

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

Check if two raster overlap

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

  • refRaster (2D numpy array) – refference Raster

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

Returns

  • 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