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

Home » Public Forums » archive » circles
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: circles [message #9585 is a reply to message #9519] Mon, 14 July 1997 00:00 Go to previous message
pit is currently offline  pit
Messages: 92
Registered: January 1996
Member
In article <33C6A55C.E92FBB0D@kprwww.na.astro.it>,
Kevin Reardon <kreardon@kprwww.na.astro.it> writes:

> ;for a circle centered at (150,50)
> xx = rebin(findgen(201,201) - 150,201,201)
^^^
must be 1

> yy = rebin(findgen(1,201) - 50,201,201)

> radial_distance = sqrt(xx^2 - yy^2)
^^^
must be a +

> tvscl,radial_distance le 50 ; displays a white filled circular mask





> The previous suggestion by Peter Suetterlin (pit@uni-sw.gwdg.de) of:
> img = (shift(dist(X,Y),x0,y0)) LT R
> doesn't seem to work if x0 and y0 are not equal to X/2 and Y/2
> (i.e. the circle is not centerted) because of wrapping problems when
> the array is shifted.

Strange, what system/version are you using?
I checked it before posting, and just again on three different systems
(Linux, SunOS, HP-UX) with IDL 4.01 and 3.0.0:
tvscl, (shift(dist(201,201),150,50)) lt 50
exactly does what it is expected to do???

Peter

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Peter "Pit" Suetterlin http://www.uni-sw.gwdg.de/~pit
Universitaets-Sternwarte Goettingen
Tel.: +49 551 39-5048 pit@uni-sw.gwdg.de
-- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * --
Come and see the stars! http://www.kis.uni-freiburg.de/~ps/SFB
Sternfreunde Breisgau e.V. Tel.: +49 7641 3492
____________________________________________________________ ______________
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: 9 Volt - The greatest electronic band ever!! - http://www.smart.net/~kkvech/index.html
Next Topic: fltarr(1,1,1,1,1,1,1,2) quirk, IDL 4

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

Current Time: Sat Oct 11 09:18:11 PDT 2025

Total time taken to generate the page: 6.80277 seconds