[Paraview] Plain text data with white space delimiters; Use raw array as axis/variables

Liang Wang frank0734 at gmail.com
Fri Jan 26 21:32:27 EST 2018


Thanks, Andy. That works! Now the problem is how I can use the 1d arrays to
construct 3d plots.

Now I have many 1d arrays: x, y, z, variable1, variable2, ..., etc.

Unfortunately, they are AMR data, not regularly indexed, (in fact they are
TecPlot ascii data, but ParaView could not read them correctly for some
reason, this is another issue, though).

I would like to make 3d plots, 2d slice, or at least 1d cuts. I am OK to
use Python interface but might need some instruction how to create 3d data
from these flattened 1d arrays.
I guess there are some tutorials to convert numpy array to vtk arrays, I
might start from that. Then I need to convert the row data ParaView GUI
reads in to numpy array then to vtk array?

I have attached the data if anyone can kindly try it. At least it is a
valid TecPlot file which other people tested using TecPlot.

On Fri, Jan 26, 2018 at 9:49 AM, Andy Bauer <andy.bauer at kitware.com> wrote:

> Hi,
>
> ParaView should be able to handle this. Try giving the filename a .csv
> extension and then add a space for the Field Delimiter Characters options.
> Optionally, you may also want to enable the Merge Consecutive Delimiters
> option.
>
> On Fri, Jan 26, 2018 at 8:33 AM, Liang Wang <frank0734 at gmail.com> wrote:
>
>> Hi All,
>>
>> 1) Does the ParaView GUI read a plain text file with white space as
>> delimiters?
>> 2) Can ParaView use a giving 1d array as an axis?
>>
>> My problem:
>>
>> I have a plain text data file, each column is a different variable, and
>> delimiters are white space, e.g.,
>>
>> x y z variable1 variable 2
>>
>> Is there a way to read such a file and use x, y, z as coordinates of the
>> resulting variables?
>>
>> For example, in TecPlot you can read in such a file and set axises to use
>> the x, y, z (or any other named variables).
>>
>> For 1), does ParaView have an extra setting to set common options for
>> plain text data like delimiter, header, skiprow, etc.?
>>
>> For 2), it appears to me that in ParaView all field/cell data is
>> associated with a predefined axis, so it is not that straightforward to use
>> a raw array as axis or as variable, though this is possible in the
>> Python interface. Is this correct.
>>
>> Best,
>>
>> Liang
>>
>>
>>
>> _______________________________________________
>> 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:
>> https://paraview.org/mailman/listinfo/paraview
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://paraview.org/pipermail/paraview/attachments/20180126/85066df2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_tecplot.dat
Type: application/octet-stream
Size: 100531 bytes
Desc: not available
URL: <https://paraview.org/pipermail/paraview/attachments/20180126/85066df2/attachment.obj>


More information about the ParaView mailing list