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

Home » Public Forums » archive » Re: Loop Multiple Files and Rename
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: Loop Multiple Files and Rename [message #67755 is a reply to message #67754] Fri, 21 August 2009 15:06 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
You described what you want to do. But what is the question?

Also, regarding this section of the code:

>   morder=fltarr(ns,nl,nb)
>   b1 = image(*,*,0)
>   b2 = image(*,*,1)
>   b3 = image(*,*,2)
>   b4 = image(*,*,3)
>   b5 = image(*,*,4)
>   b6 = image(*,*,5)
>   b7 = image(*,*,6)
>                     ; band order should be (3,4,1,2,5,6,7)
>   morder[*,*,0]=b3
>   morder[*,*,1]=b4
>   morder[*,*,2]=b1
>   morder[*,*,3]=b2
>   morder[*,*,4]=b5
>   morder[*,*,5]=b6
>   morder[*,*,6]=b7


No need to write so many lines to do this. You could use just:

border=[3,4,1,2,5,6,7]-1
morder=image[*,*,border]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Loop Multiple Files and Rename
Next Topic: Re: CHISQR_CVF question.

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

Current Time: Fri Oct 10 09:13:52 PDT 2025

Total time taken to generate the page: 1.68506 seconds