[GRASS-user] Change NaN to 0 with r.mapcalc(or whatever)?

Moskovitz, Bob Bob.Moskovitz at conservation.ca.gov
Thu May 22 12:56:08 EDT 2008


Thanks for making this patch available.  I'll update to r31470 and tell you how it goes.

> -----Original Message-----
> From: Glynn Clements [mailto:glynn at gclements.plus.com]
> Sent: Thursday, May 22, 2008 12:27 AM
> To: Moskovitz, Bob
> Cc: hamish_b at yahoo.com; Grass-User (E-mail)
> Subject: RE: [GRASS-user] Change NaN to 0 with r.mapcalc(or whatever)?
> 
> 
> 
> Moskovitz, Bob wrote:
> 
> > Based on what I read from that link I tried:
> > 	r.mapcalc "q50_eh_nonan = if(q50_eh != q50_eh,null(),q50_eh)"
> > 
> > It assigned nan to 0.  It would be great if r.null can use 
> such a simple trick.
> 
> Can you try the following patch (committed to SVN trunk as r31470):
> 
> 


More information about the grass-user mailing list