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

Home » Public Forums » archive » registering images, shift(/nowrap)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
registering images, shift(/nowrap) [message #32777] Mon, 11 November 2002 05:51 Go to previous message
ronn is currently offline  ronn
Messages: 123
Registered: April 1999
Senior Member
Hello All,

I was wondering if anyone has a routine out there that allows you to shift
an array without wrapping? The shift routine works great but anything that
gets pushed off on one edge gets wrapped around to the other. I just want to
throw this wrapped part away. A simple 1D example is

in = [1,2,3,4,5]
print, shift(in,2)
IDL> 4,5,1,2,3

what I want is

print, shiftNoWrap(in,2)
IDL> 0,0,1,2,3

Of couse, it really needs to work on a 2D image....

Thanks,
Ronn


--
Ronn Kling
KRS, inc.
email: ronn@rlkling.com
"Application Development with IDL"� programming book updated for IDL5.5!
"Calling C from IDL, Using DLM's to extend your IDL code"!
"Power Graphics with IDL, A Beginner's Guide to Object Graphics", NEW BOOK!
http://www.rlkling.com/
[Message index]
 
Read Message
Read Message
Previous Topic: IDL and SQL
Next Topic: Callable IDL

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

Current Time: Sun Mar 29 10:08:19 PDT 2026

Total time taken to generate the page: 0.39707 seconds