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 #85979 is a reply to message #85948] Mon, 23 September 2013 05:48 Go to previous messageGo to previous message
Sir Loin Steak is currently offline  Sir Loin Steak
Messages: 42
Registered: January 2012
Member
On Friday, 20 September 2013 17:46:42 UTC+1, 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


Thanks very much, that sounds like exactly what I want! I'll give it a go now.
[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 11 14:20:54 PDT 2025

Total time taken to generate the page: 0.56075 seconds