[AstroPy] point in ellipse

Tim Jenness tim.jenness@gmail....
Wed Jan 30 12:47:52 CST 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@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@scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/astropy/attachments/20130130/38b2b5d6/attachment.html 

More information about the AstroPy mailing list