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

Home » Public Forums » archive » Xinteranimate problem!!
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
Xinteranimate problem!! [message #18211] Fri, 10 December 1999 00:00 Go to next message
mensar is currently offline  mensar
Messages: 3
Registered: December 1999
Junior Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dear all
<p>I would like to thank everyone in the group for the help they have given
me so far, particularly Liam Gumley. My latest problem is with XINTERANIMATE.
The program runs, but I seem to be getting an error which says that '<font color="#CC0000">only
one animation at a time is allowed'</font>. In the window I get the error
:
<p><font color="#FF6666">% Program caused arithmetic error: Floating divide
by 0</font><font color="#FF6666"></font>
<p><font color="#000000">I believe the xinteranimate is loading the sequence
22 times. The program is :-</font>
<br><font color="#FF6666">&nbsp;</font>
<br><font color="#FF6666">pro OnOpen</font><font color="#FF6666"></font>
<p><font color="#FF6666">&nbsp; ; Get the Filename</font>
<br><font color="#FF6666">&nbsp; openr, 1, 'E:/Temp/batch.rvd'</font>
<br><font color="#FF6666">&nbsp; datas=fltarr(3,36,49,22)</font>
<br><font color="#FF6666">&nbsp; readf, 1, datas</font>
<br><font color="#FF6666">&nbsp; close, 1</font>
<br><font color="#FF6666">&nbsp; h=rebin(reform(datas[2,*,*,*]), 72, 98,
22)</font>
<br><font color="#FF6666">&nbsp; loadct, 3</font>
<br><font color="#FF6666">; erase</font>
<br><font color="#FF6666">&nbsp; frames = fltarr(512, 512, 22)</font>
<br><font color="#FF6666">&nbsp; window, 1, TITLE='Bloodflow animation',
xsize=512, ysize=512</font>
<br><font color="#FF6666">&nbsp; XINTERANIMATE, set=[512,512,22]</font>
<br><font color="#FF6666">&nbsp; for i=0, 21 do begin shade_surf, h[*,*,i],
zrange=[-1,+1] &amp; frames[*,*,i]=tvrd() &amp; xinteranimate &amp; end</font><font color="#FF6666"></font>
<p><font color="#FF6666">end</font><font color="#FF6666"></font>
<p><font color="#000000">One other small thing that I have also experienced
is that the loadct command does not seem to load any colour map to my shaded
surface. It simply appears black and white.</font><font color="#000000"></font>
<p><font color="#000000">Any help in this matter would be most appreciated.</font>
<br><font color="#000000">cheers</font><font color="#000000"></font>
<p><font color="#000000">scott reid</font>
<p>--
<br> ************************************************************ ********
<br>&nbsp;Scott Reid
<br>&nbsp;Department of Mechanical Engineering
<br>&nbsp;University of Leeds
<br>&nbsp;LS2 9JT
<br>&nbsp;
<br>&nbsp;Tel: 0113 233 2179
<br>&nbsp;E-MAIL: mensar@leeds.ac.uk
<br>&nbsp;URL: <A HREF="http://www.mech-eng.leeds.ac.uk/mensar/index.html">http://www.mech-eng.leeds.ac.uk/mensar/index.html</A>
<br> ************************************************************ ********
<br>&nbsp;</html>
Re: Xinteranimate [message #18382 is a reply to message #18211] Mon, 03 January 2000 00:00 Go to previous message
Christophe Marque is currently offline  Christophe Marque
Messages: 11
Registered: January 1999
Junior Member
David Fanning wrote:

> I think the easiest thing to do is just avoid the
> TVRD thing altogether:
>
> tvscl,img(*,*,I)
> plot_circle
> XINTERANIMATE, FRAME = I, WINDOW=!D.Window
>
> Another alternative is to do the TVRD thing, but
> do it in the Z-buffer, where you are guaranteed
> an 8-bit device.
>
> Cheers,
>
> David

The first solution is correct, no more problems!
thank you very much,
and best wishes for the new year.
Christophe.
Re: Xinteranimate [message #18385 is a reply to message #18211] Fri, 31 December 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Christophe Marque (christophe.marque@obspm.fr) writes:

> I've some troubles with xinteranimate.
> I want to realize a short movie with a sample of images ( displayed with tvscl),
> overlapped by a circle.
> I used the following commands:
> << tvscl,img(*,*,i)
> <<plot_circle
> <<a=tvrd()
> <<XINTERANIMATE, FRAME = i, IMAGE = a
> Everything is OK except the color table behaviour. One
> image is correct (red table for example) but the next ist wrong (it looks like
> an overexposed photograph). Then the next one is correct and the next one is
> wrong etc....
> I have the same behaviour with other color tables (rainbow18 for example)
> I think the problem comes from the tvrd() function. Is there a solution?

I think the easiest thing to do is just avoid the
TVRD thing altogether:

tvscl,img(*,*,I)
plot_circle
XINTERANIMATE, FRAME = I, WINDOW=!D.Window

Another alternative is to do the TVRD thing, but
do it in the Z-buffer, where you are guaranteed
an 8-bit device.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Updated CW_Field Replacements
Next Topic: Re: how to debug IDL with call_external?

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

Current Time: Thu Oct 09 22:34:21 PDT 2025

Total time taken to generate the page: 0.05359 seconds