comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Already written function to find if a point is within a rectangle?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Already written function to find if a point is within a rectangle? [message #79356 is a reply to message #79347] Fri, 24 February 2012 10:48 Go to previous messageGo to previous message
Jacare Omoplata is currently offline  Jacare Omoplata
Messages: 6
Registered: February 2012
Junior Member
On Feb 23, 1:05 pm, Greg Hennessy <greg.henne...@cox.net> wrote:
>>> I'm thinking of making polygons with a large number of edges, instead
>>> of rectangles, with every data point at the edge of a FITS file as a
>>> vertex. That would minimize the projection error, right?
>
>> That helps.  Special care is probably need around the poles though.
>
> It often helps to convert from ra/dec to unit vectors
> ([cos(ra)*cos(dec),sin(ra)*cos(dec),sin(dec)]) for both
> the star position and the edges of the polygon.

That's brilliant idea!

I'm not going to bother with it for this problem, since I've already
half written the program, and the images are not near the poles or the
longitude boundary. I will definitely use it in the future though.

Thanks.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: calling ANSYS Fluent from IDL
Next Topic: Youtube

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:58:47 PDT 2025

Total time taken to generate the page: 0.00240 seconds