|
|
Re: How can I restore many files [message #92898 is a reply to message #92889] |
Fri, 18 March 2016 07:31   |
Ali Gamal
Messages: 98 Registered: June 2013
|
Member |
|
|
On Thursday, March 17, 2016 at 8:25:58 PM UTC+2, Ali Gamal wrote:
> Hi, I have many IDL save files in folder, I want to restore all files in this folder.
> How can I do it
there are there are misunderstanding
I know the IDL save file restore as
restore,file='D:\Science\work\nb000.sav'
I have folder contains 74 save files, If I restore every file as
restore,file='D:\Science\work\nb000.sav'
restore,file='D:\Science\work\nb001.sav'
....
It will take many lines, I want other method to doing this
|
|
|
Re: How can I restore many files [message #92900 is a reply to message #92898] |
Fri, 18 March 2016 08:04   |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
you can use file_search() to create an array of file names to restore
files = file_search('*.sav',count=n)
for i=0,n-1 do restore,files[i]
On Friday, March 18, 2016 at 10:31:14 AM UTC-4, Ali Gamal wrote:
> On Thursday, March 17, 2016 at 8:25:58 PM UTC+2, Ali Gamal wrote:
>> Hi, I have many IDL save files in folder, I want to restore all files in this folder.
>> How can I do it
>
> there are there are misunderstanding
> I know the IDL save file restore as
> restore,file='D:\Science\work\nb000.sav'
> I have folder contains 74 save files, If I restore every file as
> restore,file='D:\Science\work\nb000.sav'
> restore,file='D:\Science\work\nb001.sav'
> ....
> It will take many lines, I want other method to doing this
|
|
|
|
Re: How can I restore many files [message #92909 is a reply to message #92902] |
Mon, 21 March 2016 09:56  |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Try
http://www.harrisgeospatial.com/docs/MEAN.html
with judicious use of the DIMENSION keyword argument.
I prefer using
http://www.harrisgeospatial.com/docs/MOMENT.html
simply so I can have a look at the other bits (and I just like the sound
of the word "kurtosis" :o) but if the average is all you want, then
MEAN() should do the job.
Protip: always use the /DOUBLE keyword for this stuff...
On 03/19/16 04:58, Ali Gamal wrote:
> On Thursday, March 17, 2016 at 8:25:58 PM UTC+2, Ali Gamal wrote:
>> Hi, I have many IDL save files in folder, I want to restore all files in this folder.
>> How can I do it
>
> Thanks very much, now I want to average of my idl save files images. How can I do it?
>
|
|
|