[AstroPy] point in ellipse

Perry Greenfield perry@stsci....
Wed Jan 30 12:48:01 CST 2013


Sure.

But I'm assuming you wanted more than that. I presume you are looking for a function to test if a coordinate (or array of coordinates) lies inside the ellipse or not. Yes, that can be done analytically. You want a python function that does that specifically? (No, I don't have one handy, but it shouldn't be hard to code).

Perry 

On Jan 30, 2013, at 1:33 PM, gonghang.naoc 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



More information about the AstroPy mailing list