[GRASS-SVN] r62131 - in grass/trunk: lib/rst/interp_float vector/v.surf.rst
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Sep 29 10:42:10 PDT 2014
Author: annakrat
Date: 2014-09-29 10:42:10 -0700 (Mon, 29 Sep 2014)
New Revision: 62131
Modified:
grass/trunk/lib/rst/interp_float/input2d.c
grass/trunk/vector/v.surf.rst/v.surf.rst.html
Log:
v.surf.rst: fix using standard mask and mask as option
Modified: grass/trunk/lib/rst/interp_float/input2d.c
===================================================================
--- grass/trunk/lib/rst/interp_float/input2d.c 2014-09-28 21:52:15 UTC (rev 62130)
+++ grass/trunk/lib/rst/interp_float/input2d.c 2014-09-29 17:42:10 UTC (rev 62131)
@@ -61,7 +61,8 @@
if (MASK)
Rast_get_c_row(MASKfd, MASK, i);
for (j = 0; j < params->nsizc; j++) {
- if ((cellmask && cellmask[j] == 0) || (MASK && MASK[j] == 0))
+ if ((cellmask && (cellmask[j] == 0 || Rast_is_c_null_value(&cellmask[j]))) ||
+ (MASK && (MASK[j] == 0 || Rast_is_c_null_value(&MASK[j]))))
BM_set(bitmask, j, irev, 0);
else
BM_set(bitmask, j, irev, 1);
@@ -71,9 +72,7 @@
}
else
bitmask = NULL;
-
- if (MASKfd >= 0)
- Rast_close(MASKfd);
+
if (cfmask >= 0)
Rast_close(cfmask);
Modified: grass/trunk/vector/v.surf.rst/v.surf.rst.html
===================================================================
--- grass/trunk/vector/v.surf.rst/v.surf.rst.html 2014-09-28 21:52:15 UTC (rev 62130)
+++ grass/trunk/vector/v.surf.rst/v.surf.rst.html 2014-09-29 17:42:10 UTC (rev 62131)
@@ -22,7 +22,8 @@
have time stamp, the program creates time stamp for all output maps.
<p>
-User can define a raster map named <b>mask</b>, which will be used
+User can either use <em><a href="r.mask.html">r.mask</a></em>to set a mask
+or specify a raster map in <b>mask</b> option, which will be used
as a mask. The approximation is skipped for cells which have zero or
NULL value in mask. NULL values will be assigned to these cells in all
output raster maps. Data points are checked for identical points and
More information about the grass-commit
mailing list