Ben,

Try

polydata = paraview.servermanager.Fetch(plotOverLine1)
density_array = polydata.GetPointData().GetArray('Density')

paraview.servermanager.Fetch retrieves the entire data object so that
you can access the array you want.

Best,
Cory

On Fri, Dec 9, 2016 at 2:12 PM, Ben Orr <benjaminc...@gmail.com> wrote:
> Paraview community,
>
> I am trying to batch process CFD results for aero-optic analysis. My plan is
> to create a series of PlotOverLine interpolations between the sensor and
> farfield boundary, and then use the data along that ray to do the aero-optic
> calculations. I will be using pvbatch since I have no need to visualize any
> step of the process.
>
> What is the best way to extract the data arrays (preferably only the arrays
> I need, by name), from the PlotOverLine object? For example, I can call
> "plotOverLine1.PointData['Density'].GetRange()" to get the min and max of
> the Density array, but I want the whole array.
>
> Thank you,
>
> Ben Orr
> benjaminc...@gmail.com
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to