[Paraview] How to extract a list of the plotting variable names with Python

David E DeMarle dave.demarle at kitware.com
Mon Aug 3 16:24:53 EDT 2015


Try:
src = GetActiveSource()
src.CellData.keys()


David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Mon, Aug 3, 2015 at 4:20 PM, Neal,Christopher R <chrisneal at ufl.edu>
wrote:

> Hi,
>
>
> I'm trying to extract a list of the names of the available plotting
> variables from a data set that I have loaded. The variable names are all
> related to cell data in the data set. Something like
> ['Density','Pressure','Temperature','Velocity'] is what I am trying to
> extract from the Ensight Reader data object using Python.
>
>
> I have a feeling that this is something that can be extracted from the
> vtkPVDataInformation Class, but I'm unsure about which method to use.
>
>
>
> Thank you,
>
>
> Christopher R. Neal
> Graduate Student
> Center for Compressible Multiphase Turbulence
> Mechanical and Aerospace Engineering Department
> University of Florida
> Cell: (863)-697-1958
> E-mail:  chrisneal at ufl.edu
>
> _______________________________________________
> 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
>
> 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/20150803/a4d95ba4/attachment.html>


More information about the ParaView mailing list