Re: [GRASS-user] Null or 0?

2012-02-06 Thread ALT SHN
Patrice, Daniel, Thank you for your commments - it shaded some light on the subject. Regards, André Mano 2012/2/5 Patrice Dumas > On Sun, Feb 05, 2012 at 07:22:29AM -0200, Daniel Victoria wrote: > > Hi Andre, > > > > On raster algebra, operations using null will return null while > operation

Re: [GRASS-user] Null or 0?

2012-02-05 Thread Patrice Dumas
On Sun, Feb 05, 2012 at 07:22:29AM -0200, Daniel Victoria wrote: > Hi Andre, > > On raster algebra, operations using null will return null while operations > with 0 behaves like expected. Ex: > 12 x null = null > 12 x 0 = 0 Also means do not behave the same on NULL, for example when using r.univa

Re: [GRASS-user] Null or 0?

2012-02-05 Thread Daniel Victoria
Hi Andre, On raster algebra, operations using null will return null while operations with 0 behaves like expected. Ex: 12 x null = null 12 x 0 = 0 Null is interesting to use on areas you don't have / want to represent, like an ocean... Hope it helps Daniel On Feb 5, 2012 12:03 AM, "ALT SHN" wro

[GRASS-user] Null or 0?

2012-02-04 Thread ALT SHN
Hello, I have a technichal doubt. I used* v.to.rast.constant *to tranform a line vector layer to raster. This meant i have a raster with NULL values. The output raster is to be used in map algebra operations. So my question is: Is it advisable to set the Null cells to 0? I know r.calc works with