[Paraview] Get Data Ranges in Python

Favre Jean jfavre at cscs.ch
Thu Sep 9 16:19:36 EDT 2010


________________________________________
From: paraview-bounces at paraview.org [paraview-bounces at paraview.org] On Behalf Of Tim Mardall [tim at mardall.info]
Sent: Thursday, September 09, 2010 5:32 PM
To: paraview at paraview.org
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


More information about the ParaView mailing list