I have a series of points on a plot of the sky. I want to find the area that these points occupy.
To do this I need to find the vertices of a polygon that encloses these points - convert the points to an equal-area projection and then work out the area.
I have all the code written apart from how to calculate the vertices of a polygon that enclose the points on the graph. What is the best way to do this?
The polygon you chose is not convex, so the popular convex hull algorithm wouldn't work for you.
https://pypi.org/project/alphashape/ seems what you want
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With