You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I agree. I am a first-time user and had to do quite a bit of trial-and-error to get the area of a polygon out. Some comments that may be of help:
I originally set up my arrays like so:
points = [(315.4, 18.1), (308.3, 23.0), (314.0, 30.0), (326.4, 30.0), (315.4, 18.1)]
polygon = SphericalPolygon.from_radec(points, (316.0, 25.0) ) # After the vertices, it says I need to specify an 'inside' point, yet Python complained that "ValueError:all the input array dimensions except for the concatenation axis must match exactly"
That's when I delved into the polygon.py script and realised that I actually need to do the following:
lon = [315.4, 308.3, 314.0, 326.4, 315.4]
lat = [18.1, 23.0, 30.0, 30.0, 18.1]
polygon = SphericalPolygon.from_radec(lon, lat)
Thanks for making this tool available, but please provide some easy example scripts :) Apologies if you have and I just missed them!
@svw26 Thank you for suggestions and we will definitely take them into account. To the best of my knowledge, the package should work in Python 2.7 though we may discontinue support for Python 2.7 soon.
With regard to the third point, I agree that documentation could significantly be improved.
It would be nice to show a few simple code examples in the docs.
Currently there's a lot of text (see here), but I much prefer the hand-on style of the Astropy docs with a getting started section (see e.g. here).
The text was updated successfully, but these errors were encountered: