Discussion:
[Paraview] Probe data at a point and export in csv - python scripting
omkar champhekar
2011-04-29 07:30:00 UTC
Permalink
Hi

I want to probe values at multiple locations and export the data in a single
* w = CSVWriter()*>* w.FileName = "/local/data/tmp/foo.csv"*>* #s1 should be of type Table*>* w.Input = s1*>* w.UpdatePipeline()*
*
*

*what is s1 for exporting probe data?*

*
*

*Omkar*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110429/53ecee95/attachment.htm>
David E DeMarle
2011-05-02 14:44:52 UTC
Permalink
I would go about it like so:

1) read in a vtp file containing the list of points you want to probe
at (alternatively use a python programmable source to specify them or
read a csv file and apply table to points)
2) read in the data you want to probe within
3) apply the resample with data set filter, the "input" should be the
data you want to probe in, "source" should be the list of points
4) file save as csv
5) once you know how to do it via the GUI, turn on python trace and
record your actions as python script to translate


David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109
Post by omkar champhekar
Hi
I want to probe values at multiple locations and export the data in a single
w = CSVWriter()
w.FileName = "/local/data/tmp/foo.csv"
#s1 should be of type Table
w.Input = s1
w.UpdatePipeline()
what is s1 for exporting probe data?
Omkar
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://paraview.org/Wiki/ParaView
http://www.paraview.org/mailman/listinfo/paraview
Loading...