Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-10 Thread Frank Horowitz
].PointData['Scalars_'] # Ditto z = inputs[2].PointData['Scalars_'] # Ditto seterr(all='ignore') # Instruct numpy to ignore exceptions. m = sqrt(square(x)+square(y)+square(z)) output.PointData.append(m,'magnitude') --- code end --- Thanks again for all of th

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-06 Thread Frank Horowitz
with the upstream codes. Does paraview.simple have an easy way to construct a field vector at the location of arbitrary points? If so, I think the Python script to do *that* will be faster than me trying to chase all of this down… Thanks again for the advice! Cheers, Frank Horowitz

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-05 Thread Frank Horowitz
, with a stock Mac OSX binary version 3.14.1 installed. On 05/09/2012, at 5:49 PM, Frank Horowitz wrote: > OK, more tracking the problem: > > The assumption underlying my "close up" description below is not correct. > The problem appears to be the actual _size_ of the

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-05 Thread Frank Horowitz
he loaded file >> >> If you want time statistics for your variables I think you probably want to >> use the calculator filter to square the value at each point and then use >> the temporal statistics filter to get an average of those values. After >> that you can just multiply th

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-05 Thread Frank Horowitz
27;m misunderstanding what you're trying to do, I'd suggest giving a > description of what you're trying to do and maybe there's a simpler way of > doing it. > > Andy > > On Wed, Sep 5, 2012 at 2:56 PM, Frank Horowitz > wrote: > >> OK And

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-05 Thread Frank Horowitz
. Is that a correct assumption? Is that the source of my problems??? Thanks again for your help, Frank Horowitz From: Andy Bauer [andy.ba...@kitware.com] Sent: Tuesday, September 04, 2012 7:57 PM To: Frank Horowitz Cc: paraview@paraview.org Subject: Re: [Parav

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-04 Thread Frank Horowitz
Hal Canary wrote on Tue Sep 4 15:22:01 EDT 2012: > On 09/04/2012 02:20 PM, Frank Horowitz wrote: > > > x = inputs[0].PointData['Scalars_'] > > > > I thought one needs to convert a vtkarray to a numpy array with > > x = numpy.array(inputs[0].

[Paraview] Newbie question on Python Programmable Filters

2012-09-04 Thread Frank Horowitz
If not, how should I go about coding an equivalent computation in the Programmable Filter that would execute at C (numpy) speeds? Thanks in advance for any help you might be able to provide, Frank Horowitz Cornell, Earth and Atmospheric Sciences