Import grass


In [ ]:
import grass.script as grass

Display information about raster layer


In [ ]:
layer='figure.tif.blue@PERMANENT' # name of raster layer 
info=grass.read_command('r.info', map=layer)
print info