[Paraview] Changing array names
Ann Moulding
geoflutist at gmail.com
Tue Feb 28 14:16:31 EST 2012
Well, I tried to run the filter below (entering it into the "Programmable
Filter") - but when I tried to run the calculator on the "filtered" dataset
- it again choked on the text field. (I need to note however that when I
look at the "filtered" dataset in spreadsheet view - the text field is still
there).
I will go ahead and submit a "Bug" report.
Any other ideas about how to "filter" out a non-numeric array is
appreciated.
Ann
-----Original Message-----
From: David E DeMarle [mailto:dave.demarle at kitware.com]
Sent: Monday, February 27, 2012 4:49 PM
To: Ann Moulding
Cc: paraview at paraview.org
Subject: Re: [Paraview] Changing array names
Sounds like a bug in the calculator filter. Please file a bug report to help
us remember to fix it.
Until someone does fix it, try this Script in a python programmable filter,
placed somewhere before the calculator.
id = self.GetInput()
od = self.GetOutput()
od.ShallowCopy(id)
od.GetPointData().RemoveArray('Name')
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Sat, Feb 25, 2012 at 1:10 AM, Ann Moulding <geoflutist at gmail.com> wrote:
> I am a very new user of Paraview and am just learning its
> capabilities. I am importing a series of CSV files creating points
> and Delaunay polygons and then using the Calculator filter to create
> vectors to plot with the Glyph tool. But when I use the calculator
> one of the Point Data fields is not numeric and when I write my
> formula (which does not use the non-numeric field) and hit Apply -
> thje Output message says
>
> ERROR: In ..\..\..\..\source\VTK\Graphics\vtkArrayCalculator.cxx, line
> 304
>
> vtkPVArrayCalculator (000000000B39EAE0): Invalid array name: 'Name'
>
> (the name of the non numeric field is name).
>
> I tried renaming this field in the input file and this didnt work.
> So I removed the non-numeric field completely from the input file
> and the calculator did work.
>
> So, I have the option of editing all of my input files so they dont
> have non-numeric fields or there is some way of getting Paraview to
> not choke on this field or Im missing something obvious right in front
of my nose?
> Any help is appreciated.
>
> Thanks.
>
> New2PV
>
>
>
>
> _______________________________________________
> 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
>
More information about the ParaView
mailing list