[Paraview] python: get names of data arrays

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Jan 1 10:47:03 EST 2014


Attached is an extract from the ParaView User's Guide under
development that pretty much covers this.

Utkarsh

On Tue, Dec 31, 2013 at 4:24 AM, Ian Krukow <i.krukow at tu-braunschweig.de> wrote:
> Hi,
>
> I thought it should be quite simple, but I have not found it yet.
> How can I get the names of the data arrays of an existing source in a python
> script? Or, alternatively, how can I check whether a data array with a
> certain name exists (this is what I actually want to do)?
>
> The reason: I have different data sets, where the data arrays are named
> differently (two possibilities), but I want to do the same operation on both
> of them. Therefore, I would like to check, which of the names is present in
> the dataset I have loaded, and by that pick the correct names.
>
> Kind regards
> Ian
>
>
> --
> Dipl.-Ing. Ian Krukow
> Tel +49 531 391-3673
>
> Technische Universität Braunschweig
> Institut für Statik/SFB 880
> Beethovenstr. 51
> 38106 Braunschweig
> Deutschland
>
> www.statik.tu-braunschweig.de
> sfb880.tu-braunschweig.de
> _______________________________________________
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ParaViewUsersGuide_pdf_log.pdf
Type: application/pdf
Size: 127665 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140101/7a8c9033/attachment-0001.pdf>


More information about the ParaView mailing list