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>
|
|
|