New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r.centroids #396
r.centroids #396
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great and it has a potential to be quite useful. I like how short it is.
Well, it is so short that I didn't have much to say, but I did some nit-picking.
You can also run flake8, pylint, and black on it. It will flag things such as #%
which you can't do anything about right now, but it will further polish the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was also recommending looking at the attribute table of the output vector - it might be good idea to drop some of the columns which don't make sense for r.centroids.
Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
…into r-centroids
Co-authored-by: Markus Neteler <neteler@osgeo.org>
Co-authored-by: Markus Neteler <neteler@osgeo.org>
Co-authored-by: Markus Neteler <neteler@osgeo.org>
Co-authored-by: Markus Neteler <neteler@osgeo.org>
Changed to match naming convention.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some new, some old, and some newly noticed things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making all the adjustments!
Added r.centroids, a wrapper module for r.volume that computes centroids from clumps of data as a raster.