get_raster_attribution

HSTB.kluster.gdal_helpers.get_raster_attribution(raster_source)

Return a dictionary of all attribution from the given raster. I started out just using gdal.Info, which I think is probably ok, but I wanted to add additional info and was a little worried about the Info output changing between versions.

Parameters

raster_source (str) – absolute path to the raster file

Returns

dict of attribution

Return type

dict