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
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):
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,
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?
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
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