[GRASS-user] function doesn't work anymore

Gra graziaz at gmail.com
Tue Jul 14 07:41:33 PDT 2015


Hi this function

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)



doesn't work anymore

apparently the syntax changed for min = grass.raster_info(inras)['min']


could you help


thanks


Grazia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150714/b0f8cdb7/attachment.html>


More information about the grass-user mailing list