[Paraview] "File->Save Data" from python
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Thu Feb 24 08:29:19 EST 2011
Also look at:
http://www.vtk.org/Wiki/ParaView/Python_Scripting#Exporting_CSV_Data
>>> writer = CreateWriter(".../foo.csv", source)
>>> writer.FieldAssociation = "Points" # or "Cells"
>>> writer.UpdatePipeline()
>>> del writer
Utkarsh
On Thu, Feb 24, 2011 at 4:51 AM, Paul Edwards <paul.m.edwards at gmail.com> wrote:
> d'oh accidentally click send!
> I've added the bug for python trace to
> mantis:- http://www.paraview.org/Bug/view.php?id=11892
> Regards,
> Paul
>
> On 24 February 2011 09:42, Paul Edwards <paul.m.edwards at gmail.com> wrote:
>>
>> Thanks Jean - I also found this example when looking through the mailing
>> list:
>> A workaround to save CSV data in the Python Shell is the following:
>> It would be nice if it worked from the trace (and without having to create
>> a spreadsheet
>>
>> On 23 February 2011 16:59, Favre Jean <jfavre at cscs.ch> wrote:
>>>
>>> w = CSVWriter()
>>> w.FileName = "/local/data/tmp/foo.csv"
>>> #s1 should be of type Table
>>> w.Input = s1
>>> w.UpdatePipeline()
>>>
>>>
>>> -----------------
>>> Jean M. Favre
>>> Swiss National Supercomputing Center
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
More information about the ParaView
mailing list