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

Home » Public Forums » archive » disk arc
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
disk arc [message #92934] Wed, 30 March 2016 09:21 Go to next message
Masoud Afshari is currently offline  Masoud Afshari
Messages: 1
Registered: March 2016
Junior Member
Dears,
I plot a disk with using dist_circle comand line. Now I want to divide the disk to 8 equal arcs and determine which points are inside each arc.

how can I do this??

thanks
Re: disk arc [message #92939 is a reply to message #92934] Wed, 30 March 2016 13:45 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
If you have a set of X, Y positions and a center position xc,yc then you can find the angle from the center

ang = atan( x-xc, y-yc)

You can then assign the angles into sectors of size !pi/4

On Wednesday, March 30, 2016 at 12:21:35 PM UTC-4, Masoud Afshari wrote:
> Dears,
> I plot a disk with using dist_circle comand line. Now I want to divide the disk to 8 equal arcs and determine which points are inside each arc.
>
> how can I do this??
>
> thanks
Re: disk arc [message #92941 is a reply to message #92939] Wed, 30 March 2016 15:47 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Wednesday, March 30, 2016 at 4:45:13 PM UTC-4, wlandsman wrote:
> If you have a set of X, Y positions and a center position xc,yc then you can find the angle from the center
>
> ang = atan( x-xc, y-yc)
>
> You can then assign the angles into sectors of size !pi/4
>

I had X and Y reversed

ang = atan( y-yc, x-xc)

http://www.harrisgeospatial.com/docs/ATAN.html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Reducing eps file size for plots with overlaid images?
Next Topic: IDL Poetry

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

Current Time: Wed Oct 08 11:34:13 PDT 2025

Total time taken to generate the page: 0.00384 seconds