damagescanner.raster

DamageScanner - a directe damage assessment toolkit

Raster specific functions

Module Contents

Functions

match(raster_in1, raster_in2)

In case of a mismatch between two rasters, return only the intersecting parts.

damagescanner.raster.match(raster_in1, raster_in2)[source]

In case of a mismatch between two rasters, return only the intersecting parts.

Code adapted from http://sciience.tumblr.com/post/101722591382/finding-the-georeferenced-intersection-between-two

Arguments:

raster_in1 : One of the two rasters to be clipped to the overlapping extent.

raster_in2 : One of the two rasters to be clipped to the overlapping extent.

Returns:

array1 : Numpy Array of raster1

array2 : Numpy Array of raster2

intersection : Bounding box of overlapping part