<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>"<Eatmon Jr.>", First name Last name <<a href="mailto:aeatmon@lanl.gov">aeatmon@lanl.gov</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, July 30, 2015 at 1:00 PM<br>
<span style="font-weight:bold">To: </span>David E DeMarle <<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Paraview] adjusting vertical level setting via paraview python script<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0);">
<div>I added a line to the code to explicitly set the value to 0 and ran the script again, however it still does not adjust the vertical level. </div>
<div><br>
</div>
<div>I added <tt class="descclassname" style="box-sizing: border-box; white-space: nowrap; max-width: 100%; border: none; padding: 0px; overflow-x: auto; widows: 1;">paraview.simple.</tt><tt class="descname" style="box-sizing: border-box; white-space: nowrap; max-width: 100%; border: none; padding: 0px; overflow-x: auto; widows: 1;">NetCDFMPASreader.</tt><span style="color: rgb(64, 64, 64); line-height: 24px; widows: 1; background-color: rgb(252, 252, 252);">ShowMultilayerView
= 0 </span></div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;">And then set vertical level to two different values and saw no change in the output. </div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;">Is my syntax correct? Should the values be defined in the above way or as …ShowMultilayerView = ‘1’ ?</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<span id="OLK_SRC_BODY_SECTION" style="font-size: 14px; font-family: Calibri, sans-serif;">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>David E DeMarle <<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, July 30, 2015 at 12:32 PM<br>
<span style="font-weight:bold">To: </span>First name Last name <<a href="mailto:aeatmon@lanl.gov">aeatmon@lanl.gov</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>" <<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Paraview] adjusting vertical level setting via paraview python script<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>Regarding the adding attributes error message, it is likely that the ActiveSource is not an MPAS reader at that point in time.<br>
</div>
<div>…GetActiveSource().__class__ should tell your what it is.</div>
<div><br>
</div>
<div>Regarding the level setting - what is yourReader.ShowMultilayerView?</div>
<div>The docs indicated a value of 1 makes VerticalLayer immaterial.</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature">David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: 518-881-4909</div>
</div>
<br>
<div class="gmail_quote">On Thu, Jul 30, 2015 at 9:52 AM, Eatmon Jr., Arnold <span dir="ltr">
<<a href="mailto:aeatmon@lanl.gov" target="_blank">aeatmon@lanl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>
<div>I’m one of the DSS interns working under Jim Ahrens for the summer. I am using paraviews python script in the HPC and I’m having an issue adjusting an attribute of paraview.simple.netcdfmpasreader “VerticalLevel”. </div>
<div><br>
</div>
<div>I want to adjust it from the default to one and attempted:</div>
<div><br>
</div>
<div><span style="font-family: 'Andale Mono'; font-size: 12px;">paraview.simple.NetCDFMPASreader.VerticalLevel = 1</span></div>
<div style="font-family:Calibri"><font face="Andale Mono"><span style="font-size:12px">paraview.simple.NetCDFMPASreader.VerticalLevel = ‘1'</span></font></div>
<div style="font-family:Calibri"><font face="Calibri,sans-serif">A</font><span style="font-family: Calibri, sans-serif;">nd </span></div>
<div style="font-family:Calibri"><span style="font-family: 'Andale Mono'; font-size: 12px;">paraview.simple.GetActiveSource()</span><span style="font-family: 'Andale Mono'; font-size: 12px;">.VerticalLevel = 1</span></div>
<div style="font-family:Calibri"><span style="font-family: 'Andale Mono'; font-size: 12px;"><br>
</span></div>
<div style="font-family:Calibri"><span style="font-family: 'Andale Mono'; font-size: 12px;">The first two operate with no errors doing nothing in the program and the last returns an error that the class bars adding attributes to prevent errors due to spelling. </span></div>
<div style="font-family:Calibri"><span style="font-family: 'Andale Mono'; font-size: 12px;"><br>
</span></div>
<div style="font-family:Calibri">How do I adjust the vertical level setting? </div>
<div style="font-family:Calibri"><br>
</div>
<div style="font-family:Calibri">Thank you in advance for your assistance. </div>
</div>
</div>
<br>
_______________________________________________<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/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/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=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/mailman/listinfo/paraview</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span></div>
</div>
</span>
</body>
</html>