[Paraview] FW: adjusting vertical level setting via paraview python script
Eatmon Jr., Arnold
aeatmon at lanl.gov
Thu Jul 30 15:18:49 EDT 2015
From: "<Eatmon Jr.>", First name Last name <aeatmon at lanl.gov<mailto:aeatmon at lanl.gov>>
Date: Thursday, July 30, 2015 at 1:00 PM
To: David E DeMarle <dave.demarle at kitware.com<mailto:dave.demarle at kitware.com>>
Subject: Re: [Paraview] adjusting vertical level setting via paraview python script
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.
I added paraview.simple.NetCDFMPASreader.ShowMultilayerView = 0
And then set vertical level to two different values and saw no change in the output.
Is my syntax correct? Should the values be defined in the above way or as …ShowMultilayerView = ‘1’ ?
From: David E DeMarle <dave.demarle at kitware.com<mailto:dave.demarle at kitware.com>>
Date: Thursday, July 30, 2015 at 12:32 PM
To: First name Last name <aeatmon at lanl.gov<mailto:aeatmon at lanl.gov>>
Cc: "paraview at paraview.org<mailto:paraview at paraview.org>" <paraview at paraview.org<mailto:paraview at paraview.org>>
Subject: Re: [Paraview] adjusting vertical level setting via paraview python script
Regarding the adding attributes error message, it is likely that the ActiveSource is not an MPAS reader at that point in time.
…GetActiveSource().__class__ should tell your what it is.
Regarding the level setting - what is yourReader.ShowMultilayerView?
The docs indicated a value of 1 makes VerticalLayer immaterial.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Thu, Jul 30, 2015 at 9:52 AM, Eatmon Jr., Arnold <aeatmon at lanl.gov<mailto:aeatmon at lanl.gov>> wrote:
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”.
I want to adjust it from the default to one and attempted:
paraview.simple.NetCDFMPASreader.VerticalLevel = 1
paraview.simple.NetCDFMPASreader.VerticalLevel = ‘1'
And
paraview.simple.GetActiveSource().VerticalLevel = 1
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.
How do I adjust the vertical level setting?
Thank you in advance for your assistance.
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150730/b38d7362/attachment.html>
More information about the ParaView
mailing list