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

Home » Public Forums » archive » How can I restore many files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How can I restore many files [message #92889] Thu, 17 March 2016 11:25 Go to next message
Ali Gamal is currently offline  Ali Gamal
Messages: 98
Registered: June 2013
Member
Hi, I have many IDL save files in folder, I want to restore all files in this folder.
How can I do it
Re: How can I restore many files [message #92890 is a reply to message #92889] Thu, 17 March 2016 12:09 Go to previous messageGo to next message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
http://www.harrisgeospatial.com/docs/RESTORE.html

If you're feeling adventurous, you should have a lookee at:
http://www.harrisgeospatial.com/docs/IDL_Savefile.html
too.

On 03/17/16 14:25, 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
>
Re: How can I restore many files [message #92898 is a reply to message #92889] Fri, 18 March 2016 07:31 Go to previous messageGo to next message
Ali Gamal is currently offline  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 Go to previous messageGo to next message
wlandsman is currently offline  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 #92902 is a reply to message #92889] Sat, 19 March 2016 01:58 Go to previous messageGo to next message
Ali Gamal is currently offline  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

Thanks very much, now I want to average of my idl save files images. How can I do it?
Re: How can I restore many files [message #92909 is a reply to message #92902] Mon, 21 March 2016 09:56 Go to previous message
Paul Van Delst[1] is currently offline  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?
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Apply a shapefile to raster images in IDL
Next Topic: Multiple labels in cgScatter2D?

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

Current Time: Wed Oct 08 07:14:18 PDT 2025

Total time taken to generate the page: 0.00465 seconds