No subject
Fri Mar 19 13:53:46 EDT 2010
<br>
Slice1.Input = OutputPort(ll9cellf523_ncdf, 1)<br>
<br>
But that gives<br>
<br>
NameError: name 'OutputPort' is not defined<br>
<br>
Trying either<br>
<br>
Slice1.Input = ll9cellf523_ncdf.Port(0) <br>
Slice1.Input = ll9cellf523_ncdf.Port(1)<br>
<br>
runs, but the slice is still only slicing the external surface.<br>
<br>
My test script is below.<br>
<br>
Thanks for any help.<br>
<br>
Greg<br>
<br>
</font>
<blockquote><small><small><small><small><tt><font size="+1"><small><small><small><small>#!/usr/bin/python</small></small></small></small></font><br>
<br>
<font size="+1"><small><small><small><small>try: paraview.simple</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>except: from
paraview.simple import *</small></small></small></small></font><br>
<br>
<font size="+1"><small><small><small><small>ll9cellf523_ncdf =
SLACDataReader(MeshFileName='./ll-9cell-f523.ncdf' )</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>ll9cellf523_ncdf.ModeFileName
= ['./mode0.l0.R2.457087E+09I5.096430E+04.m2']</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>ll9cellf523_ncdf.ReadInternalVolume
= 1</small></small></small></small></font><br>
<br>
<font size="+1"><small><small><small><small>a3_efield_PVLookupTable =
\</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>
GetLookupTableForArray( "efield", 3, </small></small></small></small></font><br>
<font size="+1"><small><small><small><small>
RGBPoints=[0.0, 0.0, 0.0, 1.0, </small></small></small></small></font><br>
<font size="+1"><small><small><small><small>
19.0, 1.0, 0.0, 0.0], </small></small></small></small></font><br>
<font size="+1"><small><small><small><small>
VectorMode='Magnitude', </small></small></small></small></font><br>
<font size="+1"><small><small><small><small>
ColorSpace='HSV', </small></small></small></small></font><br>
<font size="+1"><small><small><small><small>
ScalarRangeInitialized=1.0 )</small></small></small></small></font><br>
<br>
<font size="+1"><small><small><small><small>RenderView1 =
GetRenderView()</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>RenderView1.CameraPosition
= [-1.1, 0.0, 0.7]</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>RenderView1.CameraFocalPoint
= [0.0, 0.0, 0.7]</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>RenderView1.CameraClippingRange
= [2.68, 3.33]</small></small></small></small></font><br>
<br>
<font size="+1"><small><small><small><small>a3_efield_PVLookupTable.RGBPoints
= [0.0, 0.0, 0.0, 1.0, </small></small></small></small></font><br>
<font size="+1"><small><small><small><small>
19.0, 1.0, 0.0, 0.0]</small></small></small></small></font><br>
<br>
<font size="+1"><small><small><small><small>Slice1 = Slice(
SliceType="Plane" )</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>Slice1.SliceType.Origin =
[-0.023, 0.0, 0.7]</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>Slice1.SliceOffsetValues
= [0.0]</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>Slice1.SliceType = "Plane"</small></small></small></small></font><br>
<br>
<font size="+1"><small><small><small><small>DataRepresentation1 =
Show()</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>DataRepresentation1.ColorArrayName
= 'efield'</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>DataRepresentation1.LookupTable
= a3_efield_PVLookupTable</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>DataRepresentation1.ColorAttributeType
= 'POINT_DATA'</small></small></small></small></font><br>
<br>
<font size="+1"><small><small><small><small>###########################################################</small></small></small></small></font><br>
<br>
<font size="+1"><small><small><small><small>UpdatePipeline()</small></small></small></small></font><br>
<br>
<font size="+1"><small><small><small><small>view =
GetActiveView()</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>view.Background = [1, 1,
1]</small></small></small></small></font><br>
<font size="+1"><small><small><small><small>view.ViewSize = [800,
300]</small></small></small></small></font><br>
<br>
<font size="+1"><small><small><small><small>WriteImage("test.png")</small></small></small></small></font></tt></small></small></small></small><br>
</blockquote>
<font size="+1"><br>
p.s., I actually want to do something else (use a calculator to get
efield magnitude, and then plot isocontour surfaces from that), but
this slice example seemed simplest, and I'm assuming that once that
works, the other stuff will work in the same way.<br>
<br>
<br>
<br>
<br>
</font>
</body>
</html>
--------------080900040506030902060508--
More information about the ParaView
mailing list