smash.tools.raster_handler.get_window_from_bbox#

smash.tools.raster_handler.get_window_from_bbox(dataset, bbox)[source]#

Function to get the window of a defined bbox of a dataset

Parameters:
dataset: gdal object
bboxdict containing the bbox
Returns:
dic containing the computed windows

Examples

dataset=gdal_raster_open(filename) bbox_dataset=get_bbox(dataset) window=get_window_from_bbox(dataset,bbox_dataset)