Hi All,
I'm trying to visualize some vector component field time series written by a
seismic wave propagation code, and converted into .vtu files by a set of
upstream scripts.
I'm trying to compute the norm of the vector at each timeslice and then
visualize the resulting scalar field. The data
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].PointData['Scalars_'])
before doing anything with it.
___
Powered by
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].PointData['Scalars_'])
>
> before doing anythi
Hi Frank,
I didn't have a problem with the following on my windows machine using the
ParaView 3.14.1 installer.
===
try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()
Wavelet1 = Wavelet()
RenderView1 = GetRenderView()
ProgrammableFi
iew] Newbie question on Python Programmable Filters
Hi Frank,
I didn't have a problem with the following on my windows machine using the
ParaView 3.14.1 installer.
===
try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()
Wavelet1
> 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: [Paraview] Newbie quest
ld
>> iterate not only over the point values of the spatial array, but also over
>> all timeslices. Is that a correct assumption? Is that the source of my
>> problems???
>>
>> Thanks again for your help,
>>Frank Horowitz
>>
>> ---
[0] (at least as I understand it).
>>>
>>> In my original code snippet, I assumed that the "m = x*x" statement would
>>> iterate not only over the point values of the spatial array, but also over
>>> all timeslices. Is that a correct assumption? Is that
,
>>>>
>>>> Thanks for that!
>>>>
>>>> I've compiled and installed Paraview from git's release branch, and (a
>>>> slight modification) of your code runs correctly. I think that means that
>>>> my paraview/python in
t;> Thanks for that!
> >>>>
> >>>> I've compiled and installed Paraview from git's release branch, and (a
> >>>> slight modification) of your code runs correctly. I think that means
> that
> >>>> my paraview/python in
I am just starting to read this thread so I wanted to answer various
questions here separately.
Your assumption is correct. m = x*x will be 100% evaluated by NumPy. In
theory, this should be pretty much instantaneous for ~1M elements, even for
20 timeslices.
On Tue, Sep 4, 2012 at 2:20 PM, Frank
> *Sent:* Tuesday, September 04, 2012 7:57 PM
> *To:* Frank Horowitz
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] Newbie question on Python Programmable Filters
>
> Hi Frank,
>
> I didn't have a problem with the following on my windows machine using the
> Par
Paraview from git's release branch, and (a
> >>> slight modification) of your code runs correctly. I think that means
> that
> >>> my paraview/python integration is semi-sane.
> >>>
> >>> However, my problem still occurs. Recall that I have a time s
t; OK Andy,
> >>>>
> >>>> Thanks for that!
> >>>>
> >>>> I've compiled and installed Paraview from git's release branch, and (a
> >>>> slight modification) of your code runs correctly. I think that means
> that
>
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
iply the results by the number of time steps.
>>>>>
>>>>> If I'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
>>>>
a
> >> set
> >>>>> resulting from the 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 po
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 tempora
t;>>> of
>>>>>>> RequestData(). You can think of the order of operations if you have 5
>>>> time
>>>>>>> steps as:
>>>>>>> 1) iterate over each of the 5 time steps (i.e. load a file and update
>>>> th
the rest of the list's) help is greatly
> >>>> appreciated!
> >>>>>>
> >>>>>> Cheers,
> >>>>>>Frank
> >>>>>>
> >>>>>>
> >>>>>> On 05/09/2012, at 4:01
20 matches
Mail list logo