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

Home » Public Forums » archive » Reading large files with restore
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: Reading large files with restore [message #86022 is a reply to message #85948] Tue, 24 September 2013 10:56 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Sweet. I did not know about these savefile objects and methods (I
thought they were still pre-object-y).

I'm still using my own handrolled "dumpfile" procedures from the 90's
for quick-and-dirty output -- I guess I can delete 'em now.

Thanks for the info/reminder.

cheers,

paulv

p.s. To the OP, please post the results of your trying PhillipB's tips
below if you get a chance. I'm interested if they work the way you need.

On 09/20/13 12:46, Phillip Bitzer wrote:
> Let me see if I understand:
>
> 1) You have a save file with a *lot* of data.
> 2) You'd like to restore and work with some of the data.
> 3) It takes a long time to restore everything in the file and extract just what you want.
>
> If this is correct, then the IDLSave_File object is what you're after.
>
> Consider a save file created with :
> SAVE, var1, var2, file='idl.sav'
>
> Then you can get *just* var1 with
> sObj = OBJ_NEW('IDL_Savefile', 'idl.sav')
> sObj->RESTORE, 'var1'
> OBJ_DESTROY, sObj ;when you're done with the file
>
> There are ways to get the variable names if you don't know them a priori. Check out:
> http://www.exelisvis.com/docs/IDL_Savefile.html
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: logical_true vs nothing in an if statment
Next Topic: Reading part of a netcdf file?

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

Current Time: Sat Oct 18 02:36:19 PDT 2025

Total time taken to generate the page: 2.39750 seconds