Re: [GRASS-dev] Handling of Python scripts on MS Windows

2014-01-22 Thread Markus Metz
Helmut Kudrnovsky wrote: Moritz Lennert wrote Glynn Clements: Where it gets problematic is if the user already has a Python installation but it's not suitable for whatever reason. In the worst case they may be faced with a choice between using GRASS or using whatever the existing Python was

[GRASS-dev] r.mapcalc eval function: syntax and existing maps

2014-01-22 Thread Vaclav Petras
Hi, I have two r.mapcalc problems to think about. You probably remember Glynn's example of `eval` function usage in r.mapcalc expression. The example is now in the manual and says: r.mapcalc EOF eval(elev_200 = elevation - 200, \ elev_5 = 5 * elevation, \ elev_p = pow(elev_5, 2))

[GRASS-dev] Determine raster rank order per raster cell

2014-01-22 Thread Paulo van Breugel
Does anybody know a smart way to calculate for X rasters per raster cell the rank order of those rasters? For example, if I have three rasters X1, X2 and X3: X1 X2 X3 1 3 2 2 5 8 5 1 3 NA 8 2 would give three new raster layers with the values: Y1 Y2