<div dir="ltr">Would something like this work for you?<br><br><span style="font-family:monospace,monospace">from __future__ import print_function<br>from paraview.simple import *<br><br>cgns = CGNSSeriesReader(FileNames=['SC10_steady.cgns'])<br>availableCellArrays = cgns.GetPropertyValue('CellArrayInfo')[::2]<br><br>print(availableCellArrays)</span><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 30, 2016 at 2:57 AM, Crepier, Pierre <span dir="ltr"><<a href="mailto:P.Crepier@marin.nl" target="_blank">P.Crepier@marin.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div link="blue" vlink="purple" lang="EN-GB">
<p></p>
<div class="m_6433222126048716975WordSection1">
<p class="MsoNormal">Hi everybody,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">This is my first e-mail to this mailing list after looking around a lot in the wiki/manual/google.<u></u><u></u></p>
<p class="MsoNormal">I am busy trying to automate CGNS data loading using a python script but I am now stuck at listing the variables contained in the CGNS file<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The CGNS data is 3D data and contains some variables. I want to specify which data to load.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">When loading a cgns file manually, it gives list of the variables available in the file. See this picture:<u></u><u></u></p>
<p class="MsoNormal"><a href="http://www.pixhoster.info/f/2016-09/9b456f7a80da44827835ecddb0073ee6.jpg" target="_blank">http://www.pixhoster.info/f/<wbr>2016-09/<wbr>9b456f7a80da44827835ecddb0073e<wbr>e6.jpg</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am wondering how I can get access to this list via the python scripting API.<u></u><u></u></p>
<p class="MsoNormal">I searched in the CompositeDataInformation object, but all I succeed to obtain is the list of selected arrays once those are selected.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Is it possible to achieve that from python ?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks in advance,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">P. Crepier<u></u><u></u></p>
</div>
<br>
<font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold">ir.</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold">
</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold">Pierre</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold">
</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold">Crepier</font><font face="Segoe UI" size="3"></font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold"> |
</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold">Project Manager Ships</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold"> |
</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold">CFD</font><br>
<font style="font-family:Verdana;font-size:9pt;color:#7d7d7d;font-weight:bold">MARIN</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d"> | T
</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d"><a href="tel:%2B31%20317%2049%2034%2075" value="+31317493475" target="_blank">+31 317 49 34 75</a></font><font color="#7d7d7d" face="Segoe UI" size="2"></font><font style="font-family:Verdana;font-size:8pt"> |
</font><span style="font-family:Verdana;font-size:8pt"><a href="mailto:P.Crepier@marin.nl" title="" style="font-family:Verdana;font-size:8pt" target="_blank"><span style="font-family:Verdana;font-size:8pt">P.Crepier@marin.nl</span></a></span><font color="#7d7d7d" face="Segoe UI" size="2"></font><font style="font-family:Verdana;font-size:8pt"> |
</font><span style="font-family:Verdana;font-size:8pt"><a href="http://www.marin.nl" title="" style="font-family:Verdana;font-size:8pt" target="_blank"><span style="font-family:Verdana;font-size:8pt">www.marin.nl</span></a></span><br>
<br>
<a href="https://www.linkedin.com/company/marin" target="_blank"><img style="border:0px Solid" src="cid:imageee5e3d.PNG@aebaa900.4fa80c49" alt="LinkedIn" height="16" width="16"></a> <a href="http://www.youtube.com/marinmultimedia" target="_blank"><img style="border:0px Solid" src="cid:imagebad1f0.PNG@8ea416bf.47a383ab" alt="YouTube" height="16" width="16"></a> <a href="https://twitter.com/MARIN_nieuws" target="_blank"><img style="border:0px Solid" src="cid:imagecc1426.PNG@cee20a52.4aa530f7" alt="Twitter" height="16" width="16"></a> <a href="https://www.facebook.com/marin.wageningen" target="_blank"><img style="border:0px Solid" src="cid:image2edf6b.PNG@4b86cd6c.4ba1deab" alt="Facebook" height="16" width="16"></a><br>
<font style="FONT-FAMILY:Verdana;FONT-SIZE:8pt" color="#7d7d7d" face="Verdana" size="2">MARIN news:
<font style="font-family:Verdana;font-size:8pt"><span style="font-family:Verdana;font-size:8pt"><a href="http://www.marin.nl/web/News/News-items/MARIN-at-Monaco-Yacht-Show-September-28October-1.htm" title="" style="font-family:Verdana;font-size:8pt" target="_blank"><span style="font-family:Verdana;font-size:8pt">MARIN
 at Monaco Yacht Show, September 28-October 1</span></a></span></font></font>
<p></p>
<p><u></u></p>
<u></u><u></u><u></u>
</div>

<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>