[Paraview] Writing single data array to file
David E DeMarle
dave.demarle at kitware.com
Wed Aug 7 11:32:12 EDT 2013
There is always the option of using the python programmable filter.
The content of the script should be something to the effect of.
odata = self.GetOutput()
idata = self.GetInput()
odata.GetPointData().AddArray(idata.GetPointData().GetArray("foo)")
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Fri, Aug 2, 2013 at 10:25 AM, Matthew Mosby <mmosby1 at nd.edu> wrote:
> 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()
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130807/29eece2b/attachment.htm>
More information about the ParaView
mailing list