[AstroPy] point in ellipse
ghang.naoc at gmail.com
Thu Jan 31 08:49:11 EST 2013
Thank you.oh, I thought a graphic way might be more convenient than a
mathematical way .I am lazy to calculate..
On Thu, Jan 31, 2013 at 2:48 AM, Perry Greenfield <perry at stsci.edu> wrote:
> 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:
> > 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...
More information about the AstroPy