smash.tools.raster_handler.crop_array#

smash.tools.raster_handler.crop_array(array, window)[source]#

Function to crop an array according a window

Parameters:
array: numpy array
windowdict containg the window to crop
Returns:
crop_array: the cropped numpy array, shape of the defined window