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

2018-01-26 Thread Liang Wang
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  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  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
>>
>>
>


test_tecplot.dat
Description: Binary data
___
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


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

2018-01-26 Thread Andy Bauer
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  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
>
>
___
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


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

2018-01-26 Thread Liang Wang
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