No subject


Fri Mar 19 13:53:46 EDT 2010


looks
like I should be able to:<br>
    <br>
=A0=A0=A0=A0 Slice1.Input =3D OutputPort(ll9cellf523_ncdf, 1)<br>
    <br>
But that gives<br>
    <br>
=A0=A0=A0 NameError: name &#39;OutputPort&#39; is not defined<br>
    <br>
Trying either<br>
=A0=A0=A0 <br>
=A0=A0=A0 Slice1.Input =3D ll9cellf523_ncdf.Port(0)=A0 <br>
=A0=A0=A0 Slice1.Input =3D 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=3D"+1"><small><s=
mall><small><small>#!/usr/bin/python</small></small></small></small></font>=
<br>
      <br>
      <font size=3D"+1"><small><small><small><small>try: paraview.simple</s=
mall></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>except: from
paraview.simple import *</small></small></small></small></font><br>
      <br>
      <font size=3D"+1"><small><small><small><small>ll9cellf523_ncdf =3D
SLACDataReader(MeshFileName=3D&#39;./ll-9cell-f523.ncdf&#39; )</small></sma=
ll></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>ll9cellf523_ncdf.ModeFi=
leName
=3D
[&#39;./mode0.l0.R2.457087E+09I5.096430E+04.m2&#39;]</small></small></small=
></small></font><br>
      <font size=3D"+1"><small><small><small><small>ll9cellf523_ncdf.ReadIn=
ternalVolume
=3D
1</small></small></small></small></font><br>
      <br>
      <font size=3D"+1"><small><small><small><small>a3_efield_PVLookupTable
=3D
\</small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>=A0=A0
GetLookupTableForArray( &quot;efield&quot;, 3, </small></small></small></sm=
all></font><br>
      <font size=3D"+1"><small><small><small><small>=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
RGBPoints=3D[0.0,=A0=A0
0.0, 0.0, 1.0, </small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0
19.0,=A0
1.0, 0.0, 0.0], </small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
VectorMode=3D&#39;Magnitude&#39;,
      </small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
ColorSpace=3D&#39;HSV&#39;,
      </small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
ScalarRangeInitialized=3D1.0
)</small></small></small></small></font><br>
      <br>
      <font size=3D"+1"><small><small><small><small>RenderView1 =3D
GetRenderView()</small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>RenderView1.CameraPosit=
ion
=3D
[-1.1, 0.0, 0.7]</small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>RenderView1.CameraFocal=
Point
=3D
[0.0, 0.0, 0.7]</small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>RenderView1.CameraClipp=
ingRange
=3D
[2.68, 3.33]</small></small></small></small></font><br>
      <br>
      <font size=3D"+1"><small><small><small><small>a3_efield_PVLookupTable=
.RGBPoints
=3D
[0.0,=A0=A0 0.0, 0.0, 1.0,=A0 </small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0
19.0,=A0
1.0, 0.0, 0.0]</small></small></small></small></font><br>
      <br>
      <font size=3D"+1"><small><small><small><small>Slice1 =3D Slice(
SliceType=3D&quot;Plane&quot; )</small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>Slice1.SliceType.Origin
=3D
[-0.023, 0.0, 0.7]</small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>Slice1.SliceOffsetValue=
s
=3D
[0.0]</small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>Slice1.SliceType =3D
&quot;Plane&quot;</small></small></small></small></font><br>
      <br>
      <font size=3D"+1"><small><small><small><small>DataRepresentation1 =3D
Show()</small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>DataRepresentation1.Col=
orArrayName
=3D
&#39;efield&#39;</small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>DataRepresentation1.Loo=
kupTable
=3D
a3_efield_PVLookupTable</small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>DataRepresentation1.Col=
orAttributeType
=3D
&#39;POINT_DATA&#39;</small></small></small></small></font><br>
      <br>
      <font size=3D"+1"><small><small><small><small>#######################=
####################################</small></small></small></small></font>=
<br>
      <br>
      <font size=3D"+1"><small><small><small><small>UpdatePipeline()</small=
></small></small></small></font><br>
      <br>
      <font size=3D"+1"><small><small><small><small>view=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0 =3D
GetActiveView()</small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>view.Background =3D [1,
1,
1]</small></small></small></small></font><br>
      <font size=3D"+1"><small><small><small><small>view.ViewSize=A0=A0 =3D
[800,
300]</small></small></small></small></font><br>
      <br>
      <font size=3D"+1"><small><small><small><small>WriteImage(&quot;test.p=
ng&quot;)</small></small></small></small></font></tt></small></small></smal=
l></small><br>
    </blockquote>
    <font size=3D"+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&#39;m assuming that once that
works, the other stuff will work in the same way.<br>
    <br>
    <br>
    <br>
    <br>
    </font>
    </div>
    <br>
_______________________________________________<br>
Powered by <a href=3D"http://www.kitware.com" target=3D"_blank">www.kitware=
.com</a><br>
    <br>
Visit other Kitware open-source projects at <a href=3D"http://www.kitware.c=
om/opensource/opensource.html" target=3D"_blank">http://www.kitware.com/ope=
nsource/opensource.html</a><br>
    <br>
Please keep messages on-topic and check the ParaView Wiki at: <a href=3D"ht=
tp://paraview.org/Wiki/ParaView" target=3D"_blank">http://paraview.org/Wiki=
/ParaView</a><br>
    <br>
Follow this link to subscribe/unsubscribe:<br>
    <a href=3D"http://www.paraview.org/mailman/listinfo/paraview" target=3D=
"_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
    <br>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
</div></div></div>

</blockquote></div><br>

--00c09f8de53942ab6c0485781d21--


More information about the ParaView mailing list