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

2008-05-22 Thread Moskovitz, Bob
gt; 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 assign

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

2008-05-22 Thread Glynn Clements
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):

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

2008-05-21 Thread Moskovitz, Bob
ROTECTED] > Sent: Tuesday, May 20, 2008 5:26 PM > To: Moskovitz, Bob > Cc: Grass-User (E-mail) > Subject: Re: [GRASS-user] Change NaN to 0 with r.mapcalc(or whatever)? > > > If by NaN you mean null values, you are looking for the r.null command > > Daniel > > On Tue,

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

2008-05-21 Thread Moskovitz, Bob
day, May 20, 2008 8:34 PM > To: Grass-User (E-mail); Moskovitz, Bob > Subject: Re: [GRASS-user] Change NaN to 0 with r.mapcalc(or whatever)? > > > Bob wrote: > > Is there a way to r.mapcalc or some other command to change > > NaN values in rasters to another value?

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 questio

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