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

Home » Public Forums » archive » How to save an iTools procedure?
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
How to save an iTools procedure? [message #59481] Mon, 31 March 2008 01:57 Go to next message
duxiyu@gmail.com is currently offline  duxiyu@gmail.com
Messages: 88
Registered: March 2007
Member
Dear all,

I want to save an iTools procedure which consist of data and figures
to the file, in order to edit the detail of figures next time.
But an ISV file is just a save file that contains a portion of the
iTools data/vis hierarchy.
When I open ISV file, many properties of figures is missing.
If I use SAVE and RESTORE, only the variable is resotred and the
figure of iTools cannot be saved.
Is there some method which can save all the iTools data?

Best regards,
Du
Re: How to save an iTools procedure? [message #59542 is a reply to message #59481] Tue, 01 April 2008 08:11 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
Hi Du,

It sounds like you want to save the actual state of your iTool,
including the data and visualizations. If you use David & Vince's
methods, you are actually saving the IDL code that creates the iTool,
but not the actual iTool state. I don't think that's what you want.

You *should* be able to simply save into a .isv file, and that should
save all of the data and visualizations needed for that particular
iTool.

Can you give an example of either data or properties that are not
getting saved? If so, that would be a bug, and we could fix it.

-Chris
ITTVIS
Re: How to save an iTools procedure? [message #59544 is a reply to message #59481] Tue, 01 April 2008 07:03 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Vince Hradil writes:

> It works fine on my machine - btw, I think David's page is not quite
> right, I too had to use itresolve.pro.

Updated now. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: How to save an iTools procedure? [message #59547 is a reply to message #59481] Tue, 01 April 2008 06:48 Go to previous messageGo to next message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Apr 1, 2:49 am, jdu <jdu.u...@gmail.com> wrote:
> By the way, my purpose is to save the current state of the iTool in a
> single file.
> With this file, I can return to the current state of the data later
> and continute my work.
>
> Du
>
> On Apr 1, 1:29 pm, jdu <jdu.u...@gmail.com> wrote:> I have read the webpage you give me and the Tech Tip on the Research
>> Systems web page.
>> But the example cannot be repeated in my computer.
>> I build a procedure iplotfindgen100.pro that contains one line of
>> code:
>
>> PRO iplotfindgen100
>> iplot, findgen(100)
>> END
>
>> Then build the Binary At The IDL Command Line
>> IDL> .FULL_RESET_SESSION
>> IDL> .COMPILE iplotfindgen100
>> IDL> RESOLVE_ALL
>> IDL> ITRESOLVE
>> IDL> SAVE, /ROUTINES, FILENAME='iplotfingen100.sav'
>> Because the version of my IDL is 6.5, I use ITRESOLVE to replace the
>> procedure IDLITRESOLVEITOOLS.
>> However the .sav file still cannot be opened in the IDL Virtual
>> Machine.
>> A warning is given.
>> "The following error was encountered: Attempt to call undefined
>> procedure/function: 'IPOLTFINDGEN100'.
>> Please consult the supplier of the application."
>
>> Could you give me a good .sav file of the example for an iTools
>> procedure?
>
>> Best regards,
>> Du
>
>> On Apr 1, 5:50 am, Vince Hradil <hrad...@yahoo.com> wrote:
>
>>> On Mar 31, 3:57 am, "dux...@gmail.com" <dux...@gmail.com> wrote:
>
>>>> Dear all,
>
>>>> I want to save an iTools procedure which consist of data and figures
>>>> to the file, in order to edit the detail of figures next time.
>>>> But an ISV file is just a save file that contains a portion of the
>>>> iTools data/vis hierarchy.
>>>> When I open ISV file, many properties of figures is missing.
>>>> If I use SAVE and RESTORE, only the variable is resotred and the
>>>> figure of iTools cannot be saved.
>>>> Is there some method which can save all the iTools data?
>
>>>> Best regards,
>>>> Du
>
>>> http://www.dfanning.com/itool_tips/runtime.html

It works fine on my machine - btw, I think David's page is not quite
right, I too had to use itresolve.pro.
Have you checked all your spellings? Your error stated
'IPOLTFINDGEN100' could not be found... shouldn't the filename be
'IPLOTFINDGEN100.PRO'?
Re: How to save an iTools procedure? [message #59551 is a reply to message #59481] Tue, 01 April 2008 00:49 Go to previous messageGo to next message
jdu is currently offline  jdu
Messages: 7
Registered: February 2008
Junior Member
By the way, my purpose is to save the current state of the iTool in a
single file.
With this file, I can return to the current state of the data later
and continute my work.

Du


On Apr 1, 1:29 pm, jdu <jdu.u...@gmail.com> wrote:
> I have read the webpage you give me and the Tech Tip on the Research
> Systems web page.
> But the example cannot be repeated in my computer.
> I build a procedure iplotfindgen100.pro that contains one line of
> code:
>
> PRO iplotfindgen100
> iplot, findgen(100)
> END
>
> Then build the Binary At The IDL Command Line
> IDL> .FULL_RESET_SESSION
> IDL> .COMPILE iplotfindgen100
> IDL> RESOLVE_ALL
> IDL> ITRESOLVE
> IDL> SAVE, /ROUTINES, FILENAME='iplotfingen100.sav'
> Because the version of my IDL is 6.5, I use ITRESOLVE to replace the
> procedure IDLITRESOLVEITOOLS.
> However the .sav file still cannot be opened in the IDL Virtual
> Machine.
> A warning is given.
> "The following error was encountered: Attempt to call undefined
> procedure/function: 'IPOLTFINDGEN100'.
> Please consult the supplier of the application."
>
> Could you give me a good .sav file of the example for an iTools
> procedure?
>
> Best regards,
> Du
>
> On Apr 1, 5:50 am, Vince Hradil <hrad...@yahoo.com> wrote:
>
>> On Mar 31, 3:57 am, "dux...@gmail.com" <dux...@gmail.com> wrote:
>
>>> Dear all,
>
>>> I want to save an iTools procedure which consist of data and figures
>>> to the file, in order to edit the detail of figures next time.
>>> But an ISV file is just a save file that contains a portion of the
>>> iTools data/vis hierarchy.
>>> When I open ISV file, many properties of figures is missing.
>>> If I use SAVE and RESTORE, only the variable is resotred and the
>>> figure of iTools cannot be saved.
>>> Is there some method which can save all the iTools data?
>
>>> Best regards,
>>> Du
>
>> http://www.dfanning.com/itool_tips/runtime.html
Re: How to save an iTools procedure? [message #59552 is a reply to message #59481] Mon, 31 March 2008 22:29 Go to previous messageGo to next message
jdu is currently offline  jdu
Messages: 7
Registered: February 2008
Junior Member
I have read the webpage you give me and the Tech Tip on the Research
Systems web page.
But the example cannot be repeated in my computer.
I build a procedure iplotfindgen100.pro that contains one line of
code:

PRO iplotfindgen100
iplot, findgen(100)
END

Then build the Binary At The IDL Command Line
IDL> .FULL_RESET_SESSION
IDL> .COMPILE iplotfindgen100
IDL> RESOLVE_ALL
IDL> ITRESOLVE
IDL> SAVE, /ROUTINES, FILENAME='iplotfingen100.sav'
Because the version of my IDL is 6.5, I use ITRESOLVE to replace the
procedure IDLITRESOLVEITOOLS.
However the .sav file still cannot be opened in the IDL Virtual
Machine.
A warning is given.
"The following error was encountered: Attempt to call undefined
procedure/function: 'IPOLTFINDGEN100'.
Please consult the supplier of the application."

Could you give me a good .sav file of the example for an iTools
procedure?

Best regards,
Du


On Apr 1, 5:50 am, Vince Hradil <hrad...@yahoo.com> wrote:
> On Mar 31, 3:57 am, "dux...@gmail.com" <dux...@gmail.com> wrote:
>
>> Dear all,
>
>> I want to save an iTools procedure which consist of data and figures
>> to the file, in order to edit the detail of figures next time.
>> But an ISV file is just a save file that contains a portion of the
>> iTools data/vis hierarchy.
>> When I open ISV file, many properties of figures is missing.
>> If I use SAVE and RESTORE, only the variable is resotred and the
>> figure of iTools cannot be saved.
>> Is there some method which can save all the iTools data?
>
>> Best regards,
>> Du
>
> http://www.dfanning.com/itool_tips/runtime.html
Re: How to save an iTools procedure? [message #59560 is a reply to message #59481] Mon, 31 March 2008 14:50 Go to previous messageGo to next message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Mar 31, 3:57 am, "dux...@gmail.com" <dux...@gmail.com> wrote:
> Dear all,
>
> I want to save an iTools procedure which consist of data and figures
> to the file, in order to edit the detail of figures next time.
> But an ISV file is just a save file that contains a portion of the
> iTools data/vis hierarchy.
> When I open ISV file, many properties of figures is missing.
> If I use SAVE and RESTORE, only the variable is resotred and the
> figure of iTools cannot be saved.
> Is there some method which can save all the iTools data?
>
> Best regards,
> Du

http://www.dfanning.com/itool_tips/runtime.html
Re: How to save an iTools procedure? [message #59613 is a reply to message #59481] Tue, 01 April 2008 19:59 Go to previous messageGo to next message
duxiyu@gmail.com is currently offline  duxiyu@gmail.com
Messages: 88
Registered: March 2007
Member
Moreover, sometime a isv file cannot be opend by double-click.
However, if you start a iTool at first, click file->open and select
that isv file, it can be opened.
I do not know why it happens.

Du

On Apr 2, 10:54 am, "dux...@gmail.com" <dux...@gmail.com> wrote:
> Yes.
> All I want is to save the data and visualizations into a file.
> I have read the iTool user guide.
> It seems that the .isv file can meet my requirement.
>
> But there are always some errors about the .isv file.
> For example:
> u=fltarr(50,50)
> a=randomn(seed,50)
> for i=0,49 do u[i,i]=a[i]
>
> v=fltarr(50,50)
> b=randomn(seed,50)
> for i=0,49 do v[i,i]=b[i]
>
> x=findgen(50)*2*!pi/50.
> y=sin(x)
>
> ivector,u,v,x,y
>
> Then insert a plot visualization using x and y in the iTool window.
> At last save the isv file for this iTool.
> But this isv file cannot be opend by IDL, some errors occor when I
> double-click it.
> When I only use the iplot, there is no problem.
> As soon as the iVector visualization is used, such-and-such errors of
> isv file occor.
>
> Du
>
> On Apr 1, 11:11 pm, Chris Torrence <gorth...@gmail.com> wrote:
>
>> Hi Du,
>
>> It sounds like you want to save the actual state of your iTool,
>> including the data and visualizations. If you use David & Vince's
>> methods, you are actually saving the IDL code that creates the iTool,
>> but not the actual iTool state. I don't think that's what you want.
>
>> You *should* be able to simply save into a .isv file, and that should
>> save all of the data and visualizations needed for that particular
>> iTool.
>
>> Can you give an example of either data or properties that are not
>> getting saved? If so, that would be a bug, and we could fix it.
>
>> -Chris
>> ITTVIS
Re: How to save an iTools procedure? [message #59614 is a reply to message #59542] Tue, 01 April 2008 19:54 Go to previous messageGo to next message
duxiyu@gmail.com is currently offline  duxiyu@gmail.com
Messages: 88
Registered: March 2007
Member
Yes.
All I want is to save the data and visualizations into a file.
I have read the iTool user guide.
It seems that the .isv file can meet my requirement.

But there are always some errors about the .isv file.
For example:
u=fltarr(50,50)
a=randomn(seed,50)
for i=0,49 do u[i,i]=a[i]

v=fltarr(50,50)
b=randomn(seed,50)
for i=0,49 do v[i,i]=b[i]

x=findgen(50)*2*!pi/50.
y=sin(x)

ivector,u,v,x,y

Then insert a plot visualization using x and y in the iTool window.
At last save the isv file for this iTool.
But this isv file cannot be opend by IDL, some errors occor when I
double-click it.
When I only use the iplot, there is no problem.
As soon as the iVector visualization is used, such-and-such errors of
isv file occor.

Du


On Apr 1, 11:11 pm, Chris Torrence <gorth...@gmail.com> wrote:
> Hi Du,
>
> It sounds like you want to save the actual state of your iTool,
> including the data and visualizations. If you use David & Vince's
> methods, you are actually saving the IDL code that creates the iTool,
> but not the actual iTool state. I don't think that's what you want.
>
> You *should* be able to simply save into a .isv file, and that should
> save all of the data and visualizations needed for that particular
> iTool.
>
> Can you give an example of either data or properties that are not
> getting saved? If so, that would be a bug, and we could fix it.
>
> -Chris
> ITTVIS
Re: How to save an iTools procedure? [message #59621 is a reply to message #59481] Fri, 04 April 2008 06:27 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <MPG.225f401bebc563c798a319@news.frii.com>,
David Fanning <news@dfanning.com> wrote:

> duxiyu@gmail.com writes:
>
>> Is there someon who can help me?
>
> Ken Bowman is the only one on this newsgroup who I
> know uses iTools. Sending a note with a $50 bill attached
> to him might help. Otherwise, I'd be looking to file
> a bug report with ITTVIS.
>
> Cheers,
>
> David

I never open an ISV file by double-clicking it, because I don't run the
development environment. I save an ISV file by using my ITOOLS_SAVE_ISV_KPB
procedure and open them from the command line with ITOOLS_OPEN_ISV_KPB.

You can get these routines in my downloadable IDL library

http://csrp.tamu.edu/downloads/idl/bowman_lib.zip

Is this an OS level problem with the .isv file type not been correctly
associated with IDL?

Ken
Re: How to save an iTools procedure? [message #59662 is a reply to message #59481] Thu, 03 April 2008 19:28 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
duxiyu@gmail.com writes:

> Is there someon who can help me?

Ken Bowman is the only one on this newsgroup who I
know uses iTools. Sending a note with a $50 bill attached
to him might help. Otherwise, I'd be looking to file
a bug report with ITTVIS.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: How to save an iTools procedure? [message #59663 is a reply to message #59613] Thu, 03 April 2008 19:01 Go to previous message
duxiyu@gmail.com is currently offline  duxiyu@gmail.com
Messages: 88
Registered: March 2007
Member
Dear all,

Is there someon who can help me?

Du

On Apr 2, 10:59 am, "dux...@gmail.com" <dux...@gmail.com> wrote:
> Moreover, sometime a isv file cannot be opend by double-click.
> However, if you start a iTool at first, click file->open and select
> that isv file, it can be opened.
> I do not know why it happens.
>
> Du
>
> On Apr 2, 10:54 am, "dux...@gmail.com" <dux...@gmail.com> wrote:
>
>> Yes.
>> All I want is to save the data and visualizations into a file.
>> I have read the iTool user guide.
>> It seems that the .isv file can meet my requirement.
>
>> But there are always some errors about the .isv file.
>> For example:
>> u=fltarr(50,50)
>> a=randomn(seed,50)
>> for i=0,49 do u[i,i]=a[i]
>
>> v=fltarr(50,50)
>> b=randomn(seed,50)
>> for i=0,49 do v[i,i]=b[i]
>
>> x=findgen(50)*2*!pi/50.
>> y=sin(x)
>
>> ivector,u,v,x,y
>
>> Then insert a plot visualization using x and y in the iTool window.
>> At last save the isv file for this iTool.
>> But this isv file cannot be opend by IDL, some errors occor when I
>> double-click it.
>> When I only use the iplot, there is no problem.
>> As soon as the iVector visualization is used, such-and-such errors of
>> isv file occor.
>
>> Du
>
>> On Apr 1, 11:11 pm, Chris Torrence <gorth...@gmail.com> wrote:
>
>>> Hi Du,
>
>>> It sounds like you want to save the actual state of your iTool,
>>> including the data and visualizations. If you use David & Vince's
>>> methods, you are actually saving the IDL code that creates the iTool,
>>> but not the actual iTool state. I don't think that's what you want.
>
>>> You *should* be able to simply save into a .isv file, and that should
>>> save all of the data and visualizations needed for that particular
>>> iTool.
>
>>> Can you give an example of either data or properties that are not
>>> getting saved? If so, that would be a bug, and we could fix it.
>
>>> -Chris
>>> ITTVIS
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: how to create a new folder by IDL
Next Topic: Curl, Gradient and Divergence

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

Current Time: Wed Oct 08 15:53:58 PDT 2025

Total time taken to generate the page: 0.00548 seconds