[Paraview] Re: examples of pvbatch?
Fabian Braennstroem
f.braennstroem at gmx.de
Thu Jan 31 00:48:49 EST 2008
Hi Matt,
matt at mail.bettencourt.info schrieb am 01/30/2008 09:26 PM:
> VISIT seems very limited in the types of data that it can read in, i can't
> mix and match an XY slice w/ a YZ slice for example without dumping the
> full 50GB dataset because it thinks that the XY slice is 2d and the yz is
> 3D...
This sounds strange ... I am not sure, if I got your problem
and I am no expert in visit, but can't you adjust the 2d and
3d setting for the slices? I did not have to handle such
large datasets yet, but I thought visit is, like paraview,
developed for such large datasets ...
In terms of data format visit has AFAIK more formats by
default than paraview.
Just a small python 'plot line example':
OpenDatabase("/usr/gapps/visit/data/rect2d.silo")
AddPlot("Pseudocolor", "x-velocity")
DrawPlots()
Lineout((0.2,0.2), (0.8,1.2))
Regards!
Fabian
>
>> Hi,
>>
>> I can recommend using 'visit' for python batch usage. There
>> you can easyly record powerful python macros on the fly,
>> which makes it much easier for python scripting; at least as
>> long as there is no such a feature in paraview...
>>
>> Regards!
>> Fabian
>>
>> matt at mail.bettencourt.info schrieb am 01/30/2008 05:35 PM:
>>> i have just started myself down this road, here is something that i have
>>> been playing with.
>>>
>>> http://www.bettencourt.info/test.py
>>>
>>> Hope that it helps, it reads in some frames and makes pngs using the
>>> threshold filter, but you can swap that out
>>>
>>>> Hi,
>>>>
>>>> Does someone have examples of python script (pvpython or pvbatch)?
>>>>
>>>> I need to load a VTK file, filter is thru ProbeLine and save the
>>>> result in a png file (snapshot). I look at Servermanager2 tutorial
>>>> but didn't succeed to do what I want. Here what I guessed from the
>>>> interactive help:
>>>>
>>>> from paraview import servermanager
>>>>
>>>> connection=servermanager.Connect('localhost')
>>>>
>>>> reader=servermanager.sources.LegacyVTKFileReader(FileNames="/tmp/He.vtk")
>>>> reader.UpdateVTKObkject()
>>>> filter=servermanager.filters.ProbeLine(Input=reader, Source=
>>>>
>>>> TIA,
>>>>
>>>> Olivier.
>>>> _______________________________________________
>>>> ParaView mailing list
>>>> ParaView at paraview.org
>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>
>>>
>>> _______________________________________________
>>> ParaView mailing list
>>> ParaView at paraview.org
>>> http://www.paraview.org/mailman/listinfo/paraview
>
More information about the ParaView
mailing list