[GRASS-user] How to use a mask with v.surf.idw ?

Dear all,

I would like to know how to use a mask with the v.surf.idw module. I have tried using r.mask with both raster and vector maps, but v.surf.idw always produces a surface encompassing the entire region [0].

Is there any other way of forcing this module to operate within an area of interest?

Thank you.

[0] https://gis.stackexchange.com/questions/244097/v-surf-idw-ignores-mask

···

Luís Moreira de Sousa

Im Grund 6

CH-8600 Dübendorf

Switzerland

Phone: +41 (0)79 812 62 65

Email: luis.de.sousa@protonmail.ch

URL: https://sites.google.com/site/luismoreiradesousa

On 21/06/17 16:17, Luí­s Moreira de Sousa wrote:

Dear all,

I would like to know how to use a mask with the v.surf.idw module. I
have tried using r.mask with both raster and vector maps, but v.surf.idw
always produces a surface encompassing the entire region [0].

Is there any other way of forcing this module to operate within an area
of interest?

As explained in [1]: "Raster input maps are automatically masked if a raster map named MASK exists. The MASK is only applied when reading maps from the disk."

This means that the output of v.surf.idw will always cover the entire computational region. If you want to create a map with null values outside the mask, you can use r.mapcalc "masked_map = interpolated_map" while the mask is active.

Moritz

[1] https://grass.osgeo.org/grass72/manuals/rasterintro.html

Thank you.

[0] https://gis.stackexchange.com/questions/244097/v-surf-idw-ignores-mask

--
Luís Moreira de Sousa
Im Grund 6
CH-8600 Dübendorf
Switzerland

Phone: +41 (0)79 812 62 65
Email: luis.de.sousa@protonmail.ch <mailto:luis.de.sousa@protonmail.ch>
URL: https://sites.google.com/site/luismoreiradesousa

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

[Please keep discussions on the list]

On 22/06/17 09:59, Luí­s Moreira de Sousa wrote:

Thank you Moritz for your reply.

Is there any way to prevent this module from interpolating new values
for the entire region?

Not AFAIK. You could file an enhancement request. I have no idea how difficult it would be to implement this. v.surf.rst has a 'mask' parameter. I don't know when that comes to play in the algorithm, but it might be an inspiration for v.surf.idw.

Moritz

Thank you once more Moritz. I have opened a new ticket for this issue at the bug tracker [0].

Regards

[0] https://trac.osgeo.org/grass/ticket/3363#ticket

···

Luís Moreira de Sousa

Im Grund 6

CH-8600 Dübendorf

Switzerland

Phone: +41 (0)79 812 62 65

Email: luis.de.sousa@protonmail.ch

URL: https://sites.google.com/site/luismoreiradesousa

-------- Original Message --------

Subject: Re: [GRASS-user] How to use a mask with v.surf.idw ?

Local Time: June 22, 2017 12:29 PM

UTC Time: June 22, 2017 10:29 AM

From: mlennert@club.worldonline.be

To: Luí­s Moreira de Sousa luis.de.sousa@protonmail.ch, GRASS user list grass-user@lists.osgeo.org

[Please keep discussions on the list]

On 22/06/17 09:59, Luí­s Moreira de Sousa wrote:

Thank you Moritz for your reply.

Is there any way to prevent this module from interpolating new values

for the entire region?

Not AFAIK. You could file an enhancement request. I have no idea how

difficult it would be to implement this. v.surf.rst has a “mask”

parameter. I don"t know when that comes to play in the algorithm, but it

might be an inspiration for v.surf.idw.

Moritz