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

Home » Public Forums » archive » Re: Finding all angles within a range of directions; an algorithm question
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: Finding all angles within a range of directions; an algorithm question [message #30240] Mon, 15 April 2002 06:18 Go to previous message
Struan Gray is currently offline  Struan Gray
Messages: 178
Registered: December 1995
Senior Member
@yahoo.com writes:

> Could anyone please advise on a better way to do this?

Construct a rotation matrix which describes a rotation of the
original angular coordinates into the 'reference frame' of the plate,
i.e. which translates theta and phi into theta* and phi* where theta*
is the angle from the plate normal.

Then just do a matrix multiply (fast in IDL) and find the items
with theta* less than 90 degrees. You can probably speed it up by not
bothering to calculate phi* at all, and do a matrix multiply with
a vector to just find theta*.

You can either keep track of the time values by suitable identity
elements in the rotation matrix, or seperate out the angular
information and use where/histogram/compare* to find the indices of the
elements you want.


Struan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: generalized eigenvectors
Next Topic: memory problems on Win2000 or how to delete a variable

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

Current Time: Wed Oct 08 19:32:51 PDT 2025

Total time taken to generate the page: 0.00439 seconds