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 #9566 is a reply to message #9519] Wed, 16 July 1997 00:00 Go to previous messageGo to previous message
pit is currently offline  pit
Messages: 92
Registered: January 1996
Member
In article <5qd140$ckk$1@gwdu19.gwdg.de>,
pit@re.uni-sw.gwdg.de (Peter Suetterlin) writes:
> In article <33C6A55C.E92FBB0D@kprwww.na.astro.it>,
> Kevin Reardon <kreardon@kprwww.na.astro.it> writes:

>> 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:

Yes, Kevin was right, my suggestion doesn't work in all cases, as he
wrote me by email:
The radius R of the circle has to be smaller than the shift amounts x0
and y0, and also smaller than (X-x0) and (Y-y0), or the edge-wraping of
the SHIFT function will produce strange results. Sorry :-/

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:29:22 PDT 2025

Total time taken to generate the page: 1.28151 seconds