I am having a look at the new r.sample.category addon. Great idea. I would like to make a suggestion; to allow the user to define the number of points as a percentage, similar to r.random.
Rgds,
Paulo
I am having a look at the new r.sample.category addon. Great idea. I would like to make a suggestion; to allow the user to define the number of points as a percentage, similar to r.random.
Rgds,
Paulo
Hi Paulo,
On Tue, Jun 16, 2015 at 5:38 AM, Paulo van Breugel <p.vanbreugel@gmail.com>
wrote:
I am having a look at the new r.sample.category addon. Great idea. I would
like to make a suggestion; to allow the user to define the number of points
as a percentage, similar to r.random.
do you mean number of points should be based on percentage of cells in each
category or the entire raster? There are some other TODOs in
https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.sample.category/r.sample.category.py#L47
Best,
Anna
Rgds,
Paulo
Hi Anna
I was thinking about the option for the user to (1) define a separate percentage for each category or (2) one percentage for the whole raster (e.g., 10% → 10% of cells in each category is sampled).
If you implement the second option, you would more or less have your 6th TODO (specify number of points and distribute them according to histogram) I guess?
Cheers,
Paulo
On 23-06-15 04:01, Anna Petrášová wrote:
Hi Paulo,
On Tue, Jun 16, 2015 at 5:38 AM, Paulo van Breugel <p.vanbreugel@gmail.com> wrote:
I am having a look at the new r.sample.category addon. Great idea. I would like to make a suggestion; to allow the user to define the number of points as a percentage, similar to r.random.
do you mean number of points should be based on percentage of cells in each category or the entire raster? There are some other TODOs in
https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.sample.category/r.sample.category.py#L47Best,
Anna
Rgds,
Paulo