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 #67754 is a reply to message #67753] Fri, 21 August 2009 15:13 Go to previous messageGo to previous message
anniebryant@gmail.com is currently offline  anniebryant@gmail.com
Messages: 16
Registered: March 2009
Junior Member
On Aug 21, 4:06 pm, pp <pp.pente...@gmail.com> wrote:
> 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]

The question is:

1. How do I give each of the files a unique name when I use the
writeu (or if there is a better command), i.e. something similar to
their initial MODIS input name.

2. Using openr and a * after the initial few letters, is it finding
each individual file in the folder?

Sorry for being a bit vague. Does that clear it up?
[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: Thu Oct 09 20:08:43 PDT 2025

Total time taken to generate the page: 1.27923 seconds