raster_tools.Raster.to_quadrants#

Raster.to_quadrants()[source]#

Split the raster into quadrants

This returns the quadrants of the raster in the order northwest, northeast, southwest, southeast.

Returns

result – The returned result is a namedtuple with attributes: nw, ne, sw, and se. Unpacking or indexing the object provides the quadrants in the stated order.

Return type

RasterQuadrantsResult