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 #85948 is a reply to message #85942] Fri, 20 September 2013 09:46 Go to previous messageGo to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
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: Fri Oct 10 14:17:27 PDT 2025

Total time taken to generate the page: 0.40028 seconds