<div dir="ltr">Thanks, Andy. That works! Now the problem is how I can use the 1d arrays to construct 3d plots.<div><br></div><div>Now I have many 1d arrays: x, y, z, variable1, variable2, ..., etc.</div><div><br></div><div>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).</div><div><br></div><div>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.</div><div>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?</div><div><br></div><div>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.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 26, 2018 at 9:49 AM, Andy Bauer <span dir="ltr"><<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,<br><br></div>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. <br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Jan 26, 2018 at 8:33 AM, Liang Wang <span dir="ltr"><<a href="mailto:frank0734@gmail.com" target="_blank">frank0734@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi All,<div><br></div><div>1) Does the ParaView GUI read a plain text file with white space as delimiters?<br></div><div>2) Can ParaView use a giving 1d array as an axis?</div><div><br></div><div>My problem:</div><div><br></div><div>I have a plain text data file, each column is a different variable, and delimiters are white space, e.g.,</div><div><br></div><div>x y z variable1 variable 2</div><div><br></div><div>Is there a way to read such a file and use x, y, z as coordinates of the resulting variables?</div><div><br></div><div>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).</div><div><br></div><div>For 1), does ParaView have an extra setting to set common options for plain text data like delimiter, header, skiprow, etc.?</div><div><br class="m_3845596643472324233m_8378115029256668898gmail-Apple-interchange-newline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">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<span> </span></span><span class="m_3845596643472324233m_8378115029256668898gmail-gr_ m_3845596643472324233m_8378115029256668898gmail-gr_23 m_3845596643472324233m_8378115029256668898gmail-gr-alert m_3845596643472324233m_8378115029256668898gmail-gr_gramm m_3845596643472324233m_8378115029256668898gmail-gr_inline_cards m_3845596643472324233m_8378115029256668898gmail-gr_run_anim m_3845596643472324233m_8378115029256668898gmail-Grammar m_3845596643472324233m_8378115029256668898gmail-only-ins m_3845596643472324233m_8378115029256668898gmail-doubleReplace m_3845596643472324233m_8378115029256668898gmail-replaceWithoutSep" id="m_3845596643472324233m_8378115029256668898gmail-23" style="display:inline;color:rgb(34,34,34);font-size:small;border-bottom:2px solid transparent;background-repeat:no-repeat;font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">axis</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span> </span>or as variable, though this is possible in the Python interface. Is this<span> </span></span><span class="m_3845596643472324233m_8378115029256668898gmail-gr_ m_3845596643472324233m_8378115029256668898gmail-gr_24 m_3845596643472324233m_8378115029256668898gmail-gr-alert m_3845596643472324233m_8378115029256668898gmail-gr_gramm m_3845596643472324233m_8378115029256668898gmail-gr_inline_cards m_3845596643472324233m_8378115029256668898gmail-gr_run_anim m_3845596643472324233m_8378115029256668898gmail-Punctuation m_3845596643472324233m_8378115029256668898gmail-multiReplace" id="m_3845596643472324233m_8378115029256668898gmail-24" style="display:inline;color:rgb(34,34,34);font-size:small;border-bottom:2px solid transparent;background-repeat:no-repeat;font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">correct.</span><br></div><div><span class="m_3845596643472324233m_8378115029256668898gmail-gr_ m_3845596643472324233m_8378115029256668898gmail-gr_24 m_3845596643472324233m_8378115029256668898gmail-gr-alert m_3845596643472324233m_8378115029256668898gmail-gr_gramm m_3845596643472324233m_8378115029256668898gmail-gr_inline_cards m_3845596643472324233m_8378115029256668898gmail-gr_run_anim m_3845596643472324233m_8378115029256668898gmail-Punctuation m_3845596643472324233m_8378115029256668898gmail-multiReplace" style="display:inline;color:rgb(34,34,34);font-size:small;border-bottom:2px solid transparent;background-repeat:no-repeat;font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></span></div><div>Best,</div><div><br></div><div>Liang</div><div><br></div><div><br></div></div>
<br></div></div>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://paraview.org/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://paraview.org/mailman/l<wbr>istinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>