[AstroPy] how to judge a point is in some rectangle or not?

David Berry d.berry at jach.hawaii.edu
Sun Jul 1 11:02:07 EDT 2012


pyast (https://github.com/timj/starlink-pyast) has a wide range of
region handling functions, including rectangles, polygons, circles,
ellipses, etc. See for instance

http://dsberry.github.com/starlink/node1.html#Polygon

This is the python interface - see the C docs at

http://www.starlink.ac.uk/docs/sun211.htx/node355.html#xref_astPolygon

for more info.

David



On 1 July 2012 14:34, gonghang.naoc <ghang.naoc at gmail.com> wrote:
> Suppose we know the coordinates of the rectangle and the point,  is there a
> python script can handle this problem?
> What if the rectangle becomes a polygon?
> Thanks!
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>



More information about the AstroPy mailing list