[Paraview] Writing single data array to file

Matthew Mosby mmosby1 at nd.edu
Fri Aug 2 10:25:25 EDT 2013


I am writing a batch processing script to which writes the output of some
filters to a file. I am really only interested in one of the data arrays in
the result and it would be nice to pass that single data array to a writer,
e.g. CSVWriter. Is this possible? If so, how do I do it? An outline of my
script is below:

servermanager.LoadState(options.inputf)
GetSources()
dr = FindSource("dissipation_rate")

## I Want to get a single data array from object/source dr ###
dr_array = ???

writer = CreateWriter(options.outputf,dr_array)
writer.FieldAssociation = "Cells"
writer.UpdatePipeline()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130802/61410c19/attachment.htm>


More information about the ParaView mailing list