________________________________________
From: [email protected] [[email protected]] On Behalf
Of Tim Mardall [[email protected]]
Sent: Thursday, September 09, 2010 5:32 PM
To: [email protected]
Subject: [Paraview] Get Data Ranges in Python
Hello,
If I select an item in the Pipeline Browser, and click the "Information" tab in
the Object Inspector, I can view the "Data Ranges" for all the Data Arrays
defined in that object.
Is there Python commands that can enable me to Get that data?
-----------------
try this:
w = FindSource('Name')
pd = w.PointData
for n in range(pd.GetNumberOfArrays()):
print "Range for array ", pd.GetArray(n).GetName(), " ",
pd.GetArray(n).GetRange()
-----------------
Jean M. Favre
Scientific Computing Research
Swiss National Supercomputing Center
CH-6928 Manno
Switzerland
_______________________________________________
Powered by 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
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview