Re: [Paraview] Get Values of CSV sources with Programmable Filter

2014-02-06 Thread Magician
Hi Berk, Thanks for your reply. Hmmm... My purpose is extracting CSVs to vtkImageData with the Programmable Filter. And the CSVs don't have headers, so it's not so good idea for me to get values per columns. If possible, I want to get the values as 2D numpy.array directly as numpy.loadtxt().

Re: [Paraview] Get Values of CSV sources with Programmable Filter

2014-02-05 Thread Magician
Hi Utkarsh, I already checked it, but there are no information about getting all values of VTKTable with NumPy. Now I'm using for-loops and the GetValue(i, j) function, but it's not smart. Do you have any other information? Magician On Feb 5, 2014, at 4:05, Utkarsh Ayachit

Re: [Paraview] Get Values of CSV sources with Programmable Filter

2014-02-05 Thread Berk Geveci
If one of the inputs to the programmable filter is a table, you can values (columns) from it with something like: inputs[0].RowData['array_name'] This will give a (n,1) numpy array where n == number of rows. Best, -berk On Wed, Feb 5, 2014 at 9:29 AM, Magician f_magic...@mac.com wrote: Hi

Re: [Paraview] Get Values of CSV sources with Programmable Filter

2014-02-04 Thread Utkarsh Ayachit
Here's some text that describes how to go back and forth between NumPy and VTK arrays :http://www.paraview.org/Wiki/ParaView/Users_Guide/Python_Programmable_Filter#Mixing_VTK_and_NumPy_APIs Utkarsh On Fri, Jan 31, 2014 at 10:30 PM, Magician f_magic...@mac.com wrote: Hi all, I'm using PV

[Paraview] Get Values of CSV sources with Programmable Filter

2014-01-31 Thread Magician
Hi all, I'm using PV 4.1.0 and trying to get values of CSV sources with Programmable Filter. It's better to get them as numpy.array. How can I code it? Magician ___ Powered by www.kitware.com Visit other Kitware open-source projects at