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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: a simple hack!Re: How do I save parameters for next run? [message #38897] Tue, 06 April 2004 21:54
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Yunxiang Zhang <yxzhang@stanford.edu> writes:

> I once tried this from within the .sav file. And I got the error like
> 'EXECUTE function not available'. If I remember correctly, that is one of
> the drawbacks of IDL virtual machine. So is it possible to avoid using
> EXECUTE function in your cmsvlib? Thanks!

Short answer, no. Long answer, probably not. Longest answer, maybe,
but I don't have time now to investigate such a significant rework.

Good luck,
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: a simple hack!Re: How do I save parameters for next run? [message #38898 is a reply to message #38897] Tue, 06 April 2004 17:47 Go to previous message
Yunxiang Zhang is currently offline  Yunxiang Zhang
Messages: 19
Registered: October 2003
Junior Member
I once tried this from within the .sav file. And I got the error like
'EXECUTE function not available'. If I remember correctly, that is one of
the drawbacks of IDL virtual machine. So is it possible to avoid using
EXECUTE function in your cmsvlib? Thanks!

Yunxiang


On 6 Apr 2004, Craig Markwardt wrote:

> 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
> ------------------------------------------------------------ --------------
>
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
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Sat Oct 11 10:51:08 PDT 2025

Total time taken to generate the page: 0.87696 seconds