[Paraview] Data Array access on CSVReader

David E DeMarle dave.demarle at kitware.com
Fri Jan 6 09:30:46 EST 2012


Try using Fetch to bring the data produced by the CSVReader module from the
server back to the client where it will be accessible from the python shell.

Otherwise you need to create a Python Programmable Filter in order to
access the data where it resides on the server side.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Thu, Jan 5, 2012 at 10:34 AM, Luc Bordier <luc.bordier at sirehna.com>wrote:

> Hello,
>
> I am trying to access some data in arrays read from a CSVReader within a
> paraview script.
>
> My data is read by the following code :
>
> Results =  CSVReader( FileName="toto.csv")
> Results.UpdatePipeline()
>
> now I would like to acces some row value of my arrays.
>
> I am looking for something like :
>
> Results.GetRowData().GetArray(**0), but it does not exist.
>
> What is the best way to do it ?
>
> Thanks.
>
>
> Luc Bordier
> SIREHNA
> luc.bordier at sirehna.com
>
> ______________________________**_________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/**ParaView <http://paraview.org/Wiki/ParaView>
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/**mailman/listinfo/paraview<http://www.paraview.org/mailman/listinfo/paraview>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120106/5a213ce6/attachment.htm>


More information about the ParaView mailing list