def get_geo_info(filename, band=<NUM_LIT:1>):
sourceds = gdal.Open(filename, GA_ReadOnly)<EOL>ndv = sourceds.GetRasterBand(band).GetNoDataValue()<EOL>xsize = sourceds.RasterXSize<EOL>ysize = sourceds.RasterYSize<EOL>geot = sourceds.GetGeoTransform()<EOL>projection = osr.SpatialReference()<EOL>projection.ImportFromWkt(sourceds.GetProjectionRef())<EOL>datatype = sourceds.GetRasterBand(band).DataType<EOL>datatype = gdal.GetDataTypeName(datatype)<EOL>return ndv, xsize, ysize, geot, projection, datatype<EOL>
Gets information from a Raster data set