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 #93976 is a reply to message #93973] Sun, 11 December 2016 10:41 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 12/10/16 2:21 AM, Nikola Vitas wrote:
> Many thanks for the reply, Michael. It's the first time I'm using any
> of the scope functions. They seem to be my new favorites of IDL.

A word of warning: these routines are useful for some things (like
command line use or "Import to commandline" functionality), but overuse
can make code difficult to deal with.

For example, creating variables by restoring a Save file can be useful
on the command line, but in a procedure/function it can be difficult to
determine where a variable came from. Compare using RESTORE:

restore, 'mysavefile.sav'
; my_var pops into existence without any mention of its name

with my library routine to deal with Save files:

my_var = mg_save_getdata('mysavefile.sav', 'my_var')

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
[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 15:28:22 PDT 2025

Total time taken to generate the page: 0.00462 seconds