[GRASS-SVN] r31470 - grass/trunk/raster/r.null
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu May 22 03:26:27 EDT 2008
Author: glynn
Date: 2008-05-22 03:26:26 -0400 (Thu, 22 May 2008)
New Revision: 31470
Modified:
grass/trunk/raster/r.null/mask.c
Log:
Allow setnull=nan
Modified: grass/trunk/raster/r.null/mask.c
===================================================================
--- grass/trunk/raster/r.null/mask.c 2008-05-21 21:20:04 UTC (rev 31469)
+++ grass/trunk/raster/r.null/mask.c 2008-05-22 07:26:26 UTC (rev 31470)
@@ -65,5 +65,8 @@
if (I->inf > 0)
return x >= I->high;
+ if (I->low != I->low && I->high != I->high)
+ return x != x;
+
return x >= I->low && x <= I->high;
}
More information about the grass-commit
mailing list