Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-16 Thread Nico Schlömer
Almost there! atan(coordsX/coordsY) If instead of coordsX I use psi__{X,Y}, things work. However, I need something slightly different than atan: I'd like to get the complex argument of a complex number X+iY (i.e., the angle with the positive real axis). It's quite ~similar~ to what atan does,

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-16 Thread Tim Gallagher
AM Subject: Re: [Paraview] unstructured grid, programmable filters: extract, process array data Almost there! atan(coordsX/coordsY) If instead of coordsX I use psi__{X,Y}, things work. However, I need something slightly different than atan: I'd like to get the complex argument of a complex

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-16 Thread Nico Schlömer
Sent: Wednesday, February 16, 2011 8:29:02 AM Subject: Re: [Paraview] unstructured grid, programmable filters: extract, process array data Almost there! atan(coordsX/coordsY) If instead of coordsX I use psi__{X,Y}, things work. However, I need something slightly different than atan: I'd

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-16 Thread Andy Bauer
Subject: Re: [Paraview] unstructured grid, programmable filters: extract, process array data Almost there! atan(coordsX/coordsY) If instead of coordsX I use psi__{X,Y}, things work. However, I need something slightly different than atan: I'd like to get the complex argument

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-16 Thread Nico Schlömer
grid, programmable filters: extract, process array data Almost there! atan(coordsX/coordsY) If instead of coordsX I use psi__{X,Y}, things work. However, I need something slightly different than atan: I'd like to get the complex argument of a complex number X+iY (i.e., the angle

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-16 Thread Tim Gallagher
...@gatech.edu, paraview@paraview.org Sent: Wednesday, February 16, 2011 12:49:28 PM Subject: Re: [Paraview] unstructured grid, programmable filters: extract, process array data the math.atan2 function (it's not listed in the web page of python calculator functions) So the Python Calculator

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-16 Thread David E DeMarle
Bauer andy.ba...@kitware.com Cc: gtg0...@mail.gatech.edu, tim gallagher tim.gallag...@gatech.edu, paraview@paraview.org Sent: Wednesday, February 16, 2011 12:49:28 PM Subject: Re: [Paraview] unstructured grid, programmable filters: extract, process array data the math.atan2 function (it's

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-15 Thread Andy Bauer
This sounds like a job for the calculator filter. coordsX^2+coordsY^2 for your first example (or psi__X^2+psi__Y^2 for the psi variables) and atan(coordsX/coordsY) for the second example. It can operate on point or cell data (set in the Attribute Model drop-down menu), replace invalid numbers