Xinteranimate problem!! [message #18211] |
Fri, 10 December 1999 00:00  |
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"> </font>
<br><font color="#FF6666">pro OnOpen</font><font color="#FF6666"></font>
<p><font color="#FF6666"> ; Get the Filename</font>
<br><font color="#FF6666"> openr, 1, 'E:/Temp/batch.rvd'</font>
<br><font color="#FF6666"> datas=fltarr(3,36,49,22)</font>
<br><font color="#FF6666"> readf, 1, datas</font>
<br><font color="#FF6666"> close, 1</font>
<br><font color="#FF6666"> h=rebin(reform(datas[2,*,*,*]), 72, 98,
22)</font>
<br><font color="#FF6666"> loadct, 3</font>
<br><font color="#FF6666">; erase</font>
<br><font color="#FF6666"> frames = fltarr(512, 512, 22)</font>
<br><font color="#FF6666"> window, 1, TITLE='Bloodflow animation',
xsize=512, ysize=512</font>
<br><font color="#FF6666"> XINTERANIMATE, set=[512,512,22]</font>
<br><font color="#FF6666"> for i=0, 21 do begin shade_surf, h[*,*,i],
zrange=[-1,+1] & frames[*,*,i]=tvrd() & xinteranimate & 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> Scott Reid
<br> Department of Mechanical Engineering
<br> University of Leeds
<br> LS2 9JT
<br>
<br> Tel: 0113 233 2179
<br> E-MAIL: mensar@leeds.ac.uk
<br> 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> </html>
|
|
|
Re: Xinteranimate [message #18382 is a reply to message #18211] |
Mon, 03 January 2000 00:00  |
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  |
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
|
|
|