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

2008-05-22 Thread Moskovitz, Bob
Thanks for making this patch available. I'll update to r31470 and tell you how it goes. -Original Message- From: Glynn Clements [mailto:[EMAIL PROTECTED] Sent: Thursday, May 22, 2008 12:27 AM To: Moskovitz, Bob Cc: [EMAIL PROTECTED]; Grass-User (E-mail) Subject: RE: [GRASS-user]

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

2008-05-21 Thread Moskovitz, Bob
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. -Original Message- From: Hamish [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 8:34

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

2008-05-21 Thread Moskovitz, Bob
NaN is an abbreviation for Not a Number. Here is more info: http://en.wikipedia.org/wiki/NaN I was able to solve my problem by doing this: r.mapcalc q50_eh_nonan = if(q50_eh != q50_eh,null(),q50_eh) -Original Message- From: Daniel Victoria [mailto:[EMAIL PROTECTED] Sent: Tuesday,

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

2008-05-20 Thread Daniel Victoria
If by NaN you mean null values, you are looking for the r.null command Daniel On Tue, May 20, 2008 at 9:11 PM, Moskovitz, Bob [EMAIL PROTECTED] wrote: Hello All, Is there a way to r.mapcalc or some other command to change NaN values in rasters to another value? Bob Bob Moskovitz Seismic

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

2008-05-20 Thread Hamish
Bob wrote: Is there a way to r.mapcalc or some other command to change NaN values in rasters to another value? If you mean real nan not grass NULL values, see this thread from the grass-dev list from a few days ago: http://thread.gmane.org/gmane.comp.gis.grass.devel/27160 and the question