[GRASS-user] r.resamp.rst Producing Bad Values

Glynn Clements glynn at gclements.plus.com
Sat Sep 8 11:11:56 EDT 2007


Carl Brown wrote:

> > will r.null replace "nan" values?
> 
> Not in this case, at least.
> 
> But I did find a workaround using r.mapcalc:
> (data= map with nan values)
> 
> test = round ( data )     # This transforms nans into nulls
> fixed = if ( isnull ( test ), 0, data )

How about:

	fixed = if(data == data, data, null())
?

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list