[AstroPy] point in ellipse
Wed Jan 30 12:48:01 CST 2013
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).
On Jan 30, 2013, at 1:33 PM, gonghang.naoc wrote:
> 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.
> AstroPy mailing list
More information about the AstroPy