[GRASS-dev] r.sample.category

Paulo van Breugel p.vanbreugel at gmail.com
Mon Jun 22 23:05:45 PDT 2015


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 at gmail.com <mailto:p.vanbreugel at 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
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150623/4045fbdf/attachment.html>


More information about the grass-dev mailing list