[GRASS-user] function doesn't work anymore with the new installation of grass
Gra
graziaz at gmail.com
Tue Jul 14 07:40:20 PDT 2015
Hi this function:
def normalize (inras,outras):
min = grass.raster_info(inras)['min']
max = grass.raster_info(inras)['max']
grass.mapcalc("$outras = float(($inras -$valuem) / ($valueM-$valuem))",
inras = inras, outras = outras, valuem = min,valueM = max, overwrite=True)
grass.run_command('g.remove', flags='f', type='raster', name=inras,
quiet=True)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150714/7bf2a6f0/attachment.html>
More information about the grass-user
mailing list