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

Home » Public Forums » archive » Re: rotating 3d array: help for the braindead!
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: rotating 3d array: help for the braindead! [message #3615 is a reply to message #3576] Wed, 15 February 1995 04:03 Go to previous messageGo to previous message
Fergus Gallagher is currently offline  Fergus Gallagher
Messages: 41
Registered: January 1995
Member
Fergus Gallagher <f.Gallagher@nerc.ac.uk> wrote:

> Off the top of my head, the following might work :-0
>
> s = (size(image))(1:3)
> image = reform(image,s(0),s(1)*s(2),/overwrite)
> image = rotate(image,2)
> image = reform(image,s(0),s(1),s(2),/overwrite)
>
> *BUT* only for the case where you want to flip the images up-down.
>
> I haven't tried this, so take it with a PINCH of salt......
>
> Fergus Gallagher
> British National Space Centre


On second thoughts, it probably won't - it would if your "bands" were
in the the first index, i.e.,

image(i,*,*)

and then

s = (size(image))(1:3)
image = reform(image,s(0)*s(1),s(2),/overwrite)
image = rotate(image,7)
image = reform(image,s(0),s(1),s(2),/overwrite)

should work.

Fergus

P.S. Bill Thompson (NASA) recently posted his REARRANGE.PRO (with fast
CALL_EXTERNAL call) in this newsgroup: you might find this useful to
rearrange (!) your image into the above format.

See thread "Inner product of multi-dimensional arrays"
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Button (etc.) events
Next Topic: Re: Reversed color table

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

Current Time: Sun Oct 12 09:25:04 PDT 2025

Total time taken to generate the page: 1.20221 seconds