smash.tools.raster_handler.get_bbox_from_window#
- smash.tools.raster_handler.get_bbox_from_window(dataset, window)[source]#
Function to get the bbox of a defined window of a dataset
- Parameters:
- dataset: gdal object
- windowdict with ncol, nrow, col offset and row offset
- Returns:
- dic containing the computed bbox
Examples
dataset=gdal_raster_open(filename) bbox_dataset=get_bbox(dataset) window=get_window_from_bbox(dataset,bbox_dataset) possible_bbox=get_bbox_from_window(dataset,window)