[Paraview] CSV writer: choose data to be written in the file
Francois Beaubert
Francois.Beaubert at univ-valenciennes.fr
Thu Mar 20 16:22:47 EDT 2014
Thanks Felipe !
You've made my day :)
I follow you advice and use the PassArrays filter just before the csvWriter and it works like a charm :
------------- snippet start here ---------------------
PassArrays1 = PassArrays()
PassArrays1.PointDataArrays = ['Velocity', 'TempC', 'Rel_Velocity', 'arc_length']
source = PassArrays1
writer = CreateWriter("line.csv", source)
writer.FieldAssociation = "Points" # or "Cells"
writer.UpdatePipeline()
del writer
------------- snippet stop here ---------------------
Thank you very much
Francois
----- Mail original -----
De: "Felipe Bordeu" <felipe.bordeu at ec-nantes.fr>
À: paraview at paraview.org
Envoyé: Jeudi 20 Mars 2014 15:12:54
Objet: Re: [Paraview] CSV writer: choose data to be written in the file
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
maybe you can use vtkPassArrays to filter the arrays before the csvWriter.
Felipe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140320/672804a9/attachment.html>
More information about the ParaView
mailing list