<div>Thank you Anna, indeed with TYPE P it works correctly.<br></div><div><br></div><div>My first question is why is it in the book with TYPE S? That way it does not seem to be a high-pass filter at all...<br></div><div><br></div><div>I also find the definition of the sequential filter somewhat unclear. Not sure what it does, but certainly can not be used with high-pass or low-pass filters.<br></div><div><br></div><div>Thank you.<br></div><div class="protonmail_signature_block "><div class="protonmail_signature_block-user "><div><br></div><div>-- <br></div><div>Luís Moreira de Sousa<br></div><div>Im Grund 6<br></div><div>CH-8600 Dübendorf<br></div><div>Switzerland<br></div><div><br></div><div>Phone: +41 (0)79 812 62 65<br></div><div>Email: <a href="mailto:luis.de.sousa@protonmail.ch">luis.de.sousa@protonmail.ch</a><br></div><div>URL: <a href="https://sites.google.com/site/luismoreiradesousa">https://sites.google.com/site/luismoreiradesousa</a><br></div></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br></div></div><div><br></div><blockquote type="cite" class="protonmail_quote"><div>-------- Original Message --------<br></div><div>Subject: Re: [GRASS-user] r.mfilter produces empty result<br></div><div>Local Time: 11 May 2017 4:41 PM<br></div><div>UTC Time: 11 May 2017 14:41<br></div><div>From: kratochanna@gmail.com<br></div><div>To: Luí­s Moreira de Sousa <luis.de.sousa@protonmail.ch>, GRASS user list <grass-user@lists.osgeo.org><br></div><div><br></div><div>On Thu, May 11, 2017 at 10:15 AM, Luí­s Moreira de Sousa<br></div><div> <luis.de.sousa@protonmail.ch> wrote:<br></div><div> > Hi Anna, thanks for the help. I can not post the DEM to the list, here is a<br></div><div> > link to Dropbox:<br></div><div> <br></div><div> It seems the problem is in the filter specification:<br></div><div> <br></div><div> TITLE 3x3 High Pass<br></div><div> MATRIX 3<br></div><div> -1 -1 -1<br></div><div> -1  8 -1<br></div><div> -1 -1 -1<br></div><div> DIVISOR 9<br></div><div> TYPE S<br></div><div> <br></div><div> If you change it to TYPE P it will work. S is 'sequential':<br></div><div> <br></div><div> Sequential filtering happens in place. As the filter is applied to the<br></div><div> raster map layer, the category values that were changed in neighboring<br></div><div> cells affect the resulting category value of the current cell being<br></div><div> filtered.<br></div><div> <br></div><div> So since you have nulls all around it it probably propagates the<br></div><div> nulls. I am not sure if it's a bug. Is the S type required for your<br></div><div> analysis?<br></div><div> <br></div><div> Anna<br></div><div> <br></div><div> ><br></div><div> > --<br></div><div> > Luís Moreira de Sousa<br></div><div> > Im Grund 6<br></div><div> > CH-8600 Dübendorf<br></div><div> > Switzerland<br></div><div> ><br></div><div> > Phone: +41 (0)79 812 62 65<br></div><div> > Email: luis.de.sousa@protonmail.ch<br></div><div> > URL: https://sites.google.com/site/luismoreiradesousa<br></div><div> ><br></div><div> ><br></div><div> > -------- Original Message --------<br></div><div> > Subject: Re: [GRASS-user] r.mfilter produces empty result<br></div><div> > Local Time: 11 May 2017 3:56 PM<br></div><div> > UTC Time: 11 May 2017 13:56<br></div><div> > From: kratochanna@gmail.com<br></div><div> > To: Martin Landa <landa.martin@gmail.com><br></div><div> > Luí­s Moreira de Sousa <luis.de.sousa@protonmail.ch>,<br></div><div> > grass-user@lists.osgeo.org <grass-user@lists.osgeo.org><br></div><div> ><br></div><div> > On Thu, May 11, 2017 at 3:47 AM, Martin Landa <landa.martin@gmail.com><br></div><div> > wrote:<br></div><div> >> Hi,<br></div><div> >><br></div><div> >> 2017-05-11 9:36 GMT+02:00 Luí­s Moreira de Sousa<br></div><div> >> <luis.de.sousa@protonmail.ch>:<br></div><div> >>>> r.mfilter input=blenddem output=blenddem.highpass filter=highpass9.txt<br></div><div> >>> 100%<br></div><div> >>> Writing raster map <blenddem.highpass><br></div><div> >><br></div><div> >> did you set up correctly computational region?<br></div><div> >><br></div><div> >> g.region raster=blenddem<br></div><div> >><br></div><div> >> Ma-<br></div><div> >><br></div><div> ><br></div><div> > https://gis.stackexchange.com/questions/239556/r-mfilter-produces-empty-result<br></div><div> ><br></div><div> > From the GIS SE question it seems everything is correctly set. In that<br></div><div> > case, could you provide us with your data to test it? You can send a<br></div><div> > link to it, offlist if you need to.<br></div><div> ><br></div><div> > Anna<br></div><div> ><br></div><div> >> --<br></div><div> >> Martin Landa<br></div><div> >> http://geo.fsv.cvut.cz/gwiki/Landa<br></div><div> >> http://gismentors.cz/mentors/landa<br></div><div> >> _______________________________________________<br></div><div> >> grass-user mailing list<br></div><div> >> grass-user@lists.osgeo.org<br></div><div> >> https://lists.osgeo.org/mailman/listinfo/grass-user<br></div><div> ><br></div><div> ><br></div></blockquote><div><br></div>