[AstroPy] point in ellipse

gonghang.naoc ghang.naoc@gmail....
Thu Jan 31 07:41:28 CST 2013


Thank you very much. http://dsberry.github.com/starlink/node1.html is
helpful.
Hang

On Thu, Jan 31, 2013 at 2:56 AM, Tim Jenness <tim.jenness@gmail.com> wrote:

>
>
>
> On Wed, Jan 30, 2013 at 11:48 AM, Perry Greenfield <perry@stsci.edu>wrote:
>
>> 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).
>>
>>
> pyast has this built in. Create an ellipse object and then ask whether a
> position (or set of positions) is inside or outside it.
>
> --
> Tim Jenness
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/astropy/attachments/20130131/edd5670b/attachment.html 


More information about the AstroPy mailing list