[GRASS-dev] r.quantile not respecting region and mask

Hi,

Am I correct that r.quantile does not use/respect the region and mask? In the examples on the manual page (version 7.0 and 7.1) the region is first set to the input raster, which implies that the region settings do matter. No word on the mask in the manual page. In general, I would expect GRASS GIS functions to respect both the region and mask. If they do not, it might be a good idea to explicitly mention this in the manual page (as in most such cases is done I think)?

Assuming that the above is no bug, would it be possible to add an option to have r.quantiles compute the quantiles respecting the region and mask?

Regards,

Paulo

On Mon, Nov 9, 2015 at 9:11 AM, Paulo van Breugel <p.vanbreugel@gmail.com>
wrote:

Hi,

Am I correct that r.quantile does not use/respect the region and mask? In
the examples on the manual page (version 7.0 and 7.1) the region is first
set to the input raster, which implies that the region settings do matter.
No word on the mask in the manual page. In general, I would expect GRASS
GIS functions to respect both the region and mask. If they do not, it might
be a good idea to explicitly mention this in the manual page (as in most
such cases is done I think)?

Assuming that the above is no bug, would it be possible to add an option
to have r.quantiles compute the quantiles respecting the region and mask?

Regards,

Paulo

Just quick test, but it seems to work for me, setting different region
changes results, as well setting mask. The actual values looked meaningful.
Could you provide a test case where it doesn't work?

Anna

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On Mon, Nov 9, 2015 at 4:03 PM, Anna Petrášová <kratochanna@gmail.com>
wrote:

On Mon, Nov 9, 2015 at 9:11 AM, Paulo van Breugel <p.vanbreugel@gmail.com>
wrote:

Hi,

Am I correct that r.quantile does not use/respect the region and mask? In
the examples on the manual page (version 7.0 and 7.1) the region is first
set to the input raster, which implies that the region settings do matter.
No word on the mask in the manual page. In general, I would expect GRASS
GIS functions to respect both the region and mask. If they do not, it might
be a good idea to explicitly mention this in the manual page (as in most
such cases is done I think)?

Assuming that the above is no bug, would it be possible to add an option
to have r.quantiles compute the quantiles respecting the region and mask?

Regards,

Paulo

Just quick test, but it seems to work for me, setting different region
changes results, as well setting mask. The actual values looked meaningful.
Could you provide a test case where it doesn't work?

Mmm, I actually can't. Sorry, for wasting your time. Not sure what
happened, but I can't replicate this anymore after a reboot of GRASS.

Anna

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev