[Paraview] Calculator Filter

Paul Edwards paul.m.edwards at gmail.com
Mon May 24 11:05:33 EDT 2010


You won't be able to use the calculator to rename it but you can use a
Programmable Filter:

input = self.GetPolyDataInput()

output = self.GetPolyDataOutput()

 output.ShallowCopy(input)

 output.GetPointData().GetArray("2DVEL_X").SetName("SomethingElse")


Regards,
Paul



On 24 May 2010 13:46, Robert Maynard <robert.maynard at kitware.com> wrote:

> Hi Micheal,
>
> You can use the calculator filter to rename variables. Could you also
> create a bug report at http://www.paraview.org/Bug/main_page.php.
>
> On Sun, May 23, 2010 at 1:32 PM, Michael Deveau <098089d at acadiau.ca>wrote:
>
>> Hi, hopefully you can help me with my issue.
>>
>> I'd like to do some calculations involving some vector data, but it keeps
>> throwing an error.
>>
>> (iHat*abs(2DVEL_X))+(jHat*abs(
>> 2DVEL_Y))+(kHat*0)
>>
>> I think what's happening is that ParaView expects an operator between the
>> 2 and the D. However, the 2 is part of the variable name. Is there a way to
>> tell ParaView this, such as an escape character or a way to enclose the
>> variable name?
>>
>> I'd like to not have to rename the variables in the file, because I'm not
>> in charge of the data. If there is a way I can do that in ParaView, that
>> would work as well, I think.
>>
>> I've just started using ParaView, so hopefully I'm not missing something
>> obvious, but thanks in advance for your help.
>>
>> ~ Michael Deveau
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> --
> Robert Maynard
>
> _______________________________________________
> 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 --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100524/d8be0ec7/attachment.htm>


More information about the ParaView mailing list