Re: [GRASS-user] What's wrong with this r.mapcalc usage?

2008-01-31 Thread Glynn Clements
Tom Russo wrote: The other day I tried to perform an operation with r.mapcalc that didn't work the way I expected. I have a map, SAO that is 1 in some places and null elsewhere. It represents an area of interest. I have two other maps, call 'em A and B, that are elevation models over

Re: [GRASS-user] What's wrong with this r.mapcalc usage?

2008-01-31 Thread Markus Neteler
On Jan 31, 2008 10:11 AM, Glynn Clements [EMAIL PROTECTED] wrote: ... The behaviour of and || is consistent with most other infix operators operators, insofar as they return null if either argument is null. In newer versions of r.mapcalc (I don't recall exactly which versions), you can use

Re: [GRASS-user] What's wrong with this r.mapcalc usage?

2008-01-31 Thread Tom Russo
On Thu, Jan 31, 2008 at 09:11:39AM +, we recorded a bogon-computron collision of the [EMAIL PROTECTED] flavor, containing: Tom Russo wrote: The other day I tried to perform an operation with r.mapcalc that didn't work the way I expected. [...] if(!isnull(SAO),

[GRASS-user] What's wrong with this r.mapcalc usage?

2008-01-30 Thread Tom Russo
The other day I tried to perform an operation with r.mapcalc that didn't work the way I expected. I have a map, SAO that is 1 in some places and null elsewhere. It represents an area of interest. I have two other maps, call 'em A and B, that are elevation models over two areas overlapped by