[GRASS-user] r3.mapcalc / r.mapcalc: Logical Operators , || behave differently

2014-08-20 Thread Peter Löwe
Hi all, for r3.mapcalc and r.mapcalc, there seems to be a difference regarding the logical operators ( ||, etc.): Assuming that two raster maps BAR and BAZ exist, the following statement creates new map content FOO whenever BAZ and BAR are not null: r.mapcalc FOO='if((BAZ BAR),42,null())'

[GRASS-user] Installing GRASS on Win XP

2014-08-20 Thread geoff carver
I have been having trouble reinstalling GRASS on XP. I have downloaded the stand-alone, and via OsGeo4W, and installed, reinstalled, removed, rebooted, reinstalled, etc., in various different sequences without success. QGIS also isn't working. When GRASS starts, the black console window comes up,

Re: [GRASS-user] Installing GRASS on Win XP

2014-08-20 Thread Vaclav Petras
Hi, it seems that the installation failed since QGIS is not working too. It might be better to ask about this on osgeo4w-dev mailing list. You can also try standalone GRASS installer but it is based on OSGeo4W anyway. About Windows XP, I'm not sure if you are doing the right think in using it.

Re: [GRASS-user] r3.mapcalc / r.mapcalc: Logical Operators , || behave differently

2014-08-20 Thread Glynn Clements
Peter Löwe wrote: for r3.mapcalc and r.mapcalc, there seems to be a difference regarding the logical operators ( ||, etc.): Assuming that two raster maps BAR and BAZ exist, the following statement creates new map content FOO whenever BAZ and BAR are not null: r.mapcalc FOO='if((BAZ

Re: [GRASS-user] r3.mapcalc / r.mapcalc: Logical Operators , || behave differently

2014-08-20 Thread Peter Löwe
Glynn, thanks for your quick response: You are of course correct regarding the non-null/non-zero aspects and I stand corrected for the substellar cut'n past blunder :-) Yet still I'm puzzled, as I hoped that type casting to INT would do the trick: r3.mapcalc l01i='int(l01)' r3.mapcalc