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

David Berry d.berry@jach.hawaii....
Sun Jul 1 10:02:07 CDT 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


This is the python interface - see the C docs at


for more info.


On 1 July 2012 14:34, gonghang.naoc <ghang.naoc@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@scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy

More information about the AstroPy mailing list