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

Home » Public Forums » archive » Re: a simple hack!Re: How do I save parameters for next run?
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: a simple hack!Re: How do I save parameters for next run? [message #38906 is a reply to message #38898] Tue, 06 April 2004 10:09 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Yunxiang Zhang <yxzhang@stanford.edu> writes:


> Folks,
>
> Thanks for all your input here. I was trying to look into Craig's
> library and see if I can come up with a solution. But it turned to be
> a little bit complicated for me. Today, I finally did it with a simple
> hack by appending the default data to the end of the .sav file. The code
> will read itself, the .sav file, to get the default value and after user
> input it will update the data appended. The only drawback is you can't run
> the program before you generate the .sav file and append the default data
> to the end of the .sav file. Here's how the code looks like,

Rather than hacking some arbitrary data onto the end of the save file,
why not append the entries directly to the save file as legitimate
save-file variables?

You should be able to do this with CMSAVE, ..., /APPEND

Good luck,
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: volume transparency in iVolume
Next Topic: Re: plotting x vs. (y & T) in 2 dimensions?

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

Current Time: Tue Dec 02 23:41:13 PST 2025

Total time taken to generate the page: 3.52411 seconds