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

Home » Public Forums » archive » 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: How do I save parameters for next run? [message #38820] Thu, 01 April 2004 10:38 Go to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Craig Markwardt wrote:

>
> Reimar Bauer <R.Bauer@fz-juelich.de> writes:
>>> Folks,
>>>
>>> I am wondering if I can save the user input parameters for the next
>>> run of my program without creating additional files for it's "memory".
>>>
>>> Is it possible? Thanks.
>>>
>>> Yunxiang
>>>
>>
>> Take a look on save and restore
>
> But he asked about not creating additional files. Not too many
> options for that. If running on Unix, it's possible to wrap IDL in a
> script, either Perl or Bourne shell or whatever, and then establish a
> protocol for the script to capture your crucial outputs. Not elegant
> but it could work.
>
> Craig

I read twice things not right. He asked for user input parameters.

But I can't answer how to do it without writing to a file.

Did you know the idl journal command?

> idl

IDL> journal, 'my_user_journal.pro' start the journal file and
IDL> a=10
IDL>
IDL> journal ends recording the user inputs.
IDL> exit


Afterwards this file could be called again by @my_user_journal from the IDL>
prompt, And print,a gives 10.


Reimar
Re: How do I save parameters for next run? [message #38821 is a reply to message #38820] Thu, 01 April 2004 08:55 Go to previous messageGo to next message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Reimar Bauer <R.Bauer@fz-juelich.de> writes:
>> Folks,
>>
>> I am wondering if I can save the user input parameters for the next
>> run of my program without creating additional files for it's "memory".
>>
>> Is it possible? Thanks.
>>
>> Yunxiang
>>
>
> Take a look on save and restore

But he asked about not creating additional files. Not too many
options for that. If running on Unix, it's possible to wrap IDL in a
script, either Perl or Bourne shell or whatever, and then establish a
protocol for the script to capture your crucial outputs. Not elegant
but it could work.

Craig
Re: How do I save parameters for next run? [message #38829 is a reply to message #38821] Thu, 01 April 2004 04:16 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Yunxiang Zhang wrote:
> Folks,
>
> I am wondering if I can save the user input parameters for the next
> run of my program without creating additional files for it's "memory".
>
> Is it possible? Thanks.
>
> Yunxiang
>

Take a look on save and restore

Reimar
--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
Re: How do I save parameters for next run? [message #38964 is a reply to message #38820] Thu, 01 April 2004 14:10 Go to previous message
Yunxiang Zhang is currently offline  Yunxiang Zhang
Messages: 19
Registered: October 2003
Junior Member
Hi,

Sorry for the confusion. I just want my stand alone application to have a
small "memory" interactively. For example, I have a program, say,
'mypro.sav' and needs user to input a series of parameters, say p1, p2
...pn through an input gui. Then the program runs perfect. But then if
the next run the user only need to change a small fraction of the
parameters, it would be nice that my program can have a small memory so
that my gui displays the parameters input last time and the user need
only change maybe one parameter and press 'enter' to continue the
rest of the calculations.

The idea comes from my colleagues and I still can't think of a way without
creating some additional log file. Maybe somebody can tell me how to hack
the .sav file so that i can dock some data into a specific region without
breaking the .sav file.

Thanks,

Yunxiang

On Thu, 1 Apr 2004, Reimar Bauer wrote:

> Craig Markwardt wrote:
>
>>
>> Reimar Bauer <R.Bauer@fz-juelich.de> writes:
>>>> Folks,
>>>>
>>>> I am wondering if I can save the user input parameters for the next
>>>> run of my program without creating additional files for it's "memory".
>>>>
>>>> Is it possible? Thanks.
>>>>
>>>> Yunxiang
>>>>
>>>
>>> Take a look on save and restore
>>
>> But he asked about not creating additional files. Not too many
>> options for that. If running on Unix, it's possible to wrap IDL in a
>> script, either Perl or Bourne shell or whatever, and then establish a
>> protocol for the script to capture your crucial outputs. Not elegant
>> but it could work.
>>
>> Craig
>
> I read twice things not right. He asked for user input parameters.
>
> But I can't answer how to do it without writing to a file.
>
> Did you know the idl journal command?
>
>> idl
>
> IDL> journal, 'my_user_journal.pro' start the journal file and
> IDL> a=10
> IDL>
> IDL> journal ends recording the user inputs.
> IDL> exit
>
>
> Afterwards this file could be called again by @my_user_journal from the IDL>
> prompt, And print,a gives 10.
>
>
> Reimar
>
>
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Huge Maps & a device for faking a large window
Next Topic: new version of IDL cookbook

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

Current Time: Wed Oct 08 19:24:34 PDT 2025

Total time taken to generate the page: 0.00674 seconds