[AstroPy] point in ellipse

Tim Jenness tim.jenness at gmail.com
Wed Jan 30 13:47:52 EST 2013

[now replying to list]

You can use the Region class in pyast for that (it's not part of astropy).
It has support for all the STC regions.


AST is the library used internally by DS9.

Tim Jenness

On Wed, Jan 30, 2013 at 11:33 AM, gonghang.naoc <ghang.naoc at gmail.com>wrote:

> hi,everybody,
>      I believe many people here use ds9 and know  its region file
> format.For example,we can make an ellipse if we know its center ra,dec and
> main aixs direction.Is there a pythonic way to judge whether a point is in
> an ellipse if we know ra&dec of the point?
>      Thank you.
>      Best wishes.
>      Hang
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20130130/38b2b5d6/attachment.html>

More information about the AstroPy mailing list