[Paraview] Scalar components and Python Calculator

Pettey . Lucas LPettey at drc.com
Wed May 22 17:55:20 EDT 2013


Hello,

I am trying to use the Python Calculator on 2 different Scalar components in the same data file.

I have written the real and imaginary parts of a Fortran complex data type to a single ".raw" binary file. ParaView correctly opens this file when I tell it that there are 2 scalar components.

I can use the Calculator to perform calculations on the "X" and "Y" components (the real gets imported by default as ImageData_X and the imaginary as ImageData_Y). An expression in the Calculator filter such as:

sqrt(ImageData_X^2 + ImageData_Y^2)

works fine. The Python Calculator, however, generates an error that ImageData_X and ImageData_Y are not defined.

Both filters are set to Point Data.

Any suggestions?

Thanks
Lucas
________________________________
This electronic message transmission and any attachments that accompany it contain information from DRC® (Dynamics Research Corporation) or its subsidiaries, or the intended recipient, which is privileged, proprietary, business confidential, or otherwise protected from disclosure and is the exclusive property of DRC and/or the intended recipient. The information in this email is solely intended for the use of the individual or entity that is the intended recipient. If you are not the intended recipient, any use, dissemination, distribution, retention, or copying of this communication, attachments, or substance is prohibited. If you have received this electronic transmission in error, please immediately reply to the author via email that you received the message by mistake and also promptly and permanently delete this message and all copies of this email and any attachments. We thank you for your assistance and apologize for any inconvenience.


More information about the ParaView mailing list