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

Home » Public Forums » archive » RESTORE-like function using H5
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: RESTORE-like function using H5 [message #93971 is a reply to message #93970] Fri, 09 December 2016 16:20 Go to previous messageGo to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Friday, December 9, 2016 at 4:47:51 PM UTC-7, Nikola Vitas wrote:
> I made save- and restore-like functions using H5 instead of the xdr format. To resolve input variable names in saveh5, I used SCOPE_VARNAMES and that works fine. On the other hand, my restoreh5 is a function returning a structure. Just for curiosity, what is the trick with the native RESTORE procedure? How does it make the loaded variables available in memory after the execution? It behaves like a batch file that takes some input (filename, keywords) or as a procedure with a silent STOP before the END.

RESTORE is part of the C-level API (rather than .pro code) so it is able to create variables in whatever scope it wants. It is probably using the equivalent of the exposed entry point IDL_FindNamedVariable(). (See http://www.harrisgeospatial.com/docs/LookUpVariablesCurrentS cope.html).

Jim P.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: function graphics max window size
Next Topic: Partial Differential Equation

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

Current Time: Wed Oct 08 17:50:18 PDT 2025

Total time taken to generate the page: 0.00862 seconds