<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Not sure, but think it’s irrelevant for my particular use. I'm going to try the Programmable Source (Python script) approach (and use <span class="">scipy.io.loadmat to read my .mat file). Maybe I missed it - is there a way to read in this script from a file? (copy/pasting into the Pgmable Source widget certainly works; just asking)  Thanks! </span><div class=""><font color="#28fe14" face="Andale Mono" class=""><span style="background-color: rgb(0, 0, 0);" class=""><br class=""></span></font><div><blockquote type="cite" class=""><div class="">On Oct 11, 2017, at 1:24 PM, Berk Geveci <<a href="mailto:berk.geveci@kitware.com" class="">berk.geveci@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div dir="ltr" class="">Is there a Python API to read .mat files? What is the underlying structure? I kind of remember them using HDF5 for some stuff...</div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Oct 10, 2017 at 2:18 PM, Heiland, Randy <span dir="ltr" class=""><<a href="mailto:heiland@iu.edu" target="_blank" class="">heiland@iu.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hello,<div class=""><br class=""></div><div class="">I have some matlab files I’d like to get into PV. Initially, the data is quite simple: sphere centers, radii, color attribute (a few 100K spheres). In the past, I’ve manually converted the files into .vtk formats using Python w/ scipy to load/parse the .mat files. But I’d like to avoid creating additional files and just read the .mat files directly.</div><div class=""><br class=""></div><div class="">I *think* I’d like to do this w/ Python still (but without creating files), if that’s an option. Basically, I’d welcome suggestions for the simplest approach, at least initially. I’m not terribly concerned about the “slowness” of Python reading/converting the .mat files.</div><div class=""><br class=""></div><div class="">Using PV 5.4.1. And the solution needs to be easily adopted by others who will be using PV.</div><div class=""><br class=""></div><div class="">I’m sure there are concerns that I’ve side-stepped, e.g. would I ever want to use it in client/server mode, etc.</div><div class=""><br class=""></div><div class="">I’ve seen <a href="https://www.paraview.org/Wiki/Plugin_HowTo" target="_blank" class="">https://www.paraview.org/<wbr class="">Wiki/Plugin_HowTo</a> and I was also curious if a “Programmable Source” would be an option. </div><div class=""><br class=""></div><div class="">thanks! (and it’s nice to re-join the community after a long absence)</div><span class="HOEnZb"><font color="#888888" class=""><div class="">-Randy</div></font></span></div><br class="">______________________________<wbr class="">_________________<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">http://www.kitware.com/<wbr class="">opensource/opensource.html</a><br class="">
<br class="">
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank" class="">http://paraview.org/Wiki/<wbr class="">ParaView</a><br class="">
<br class="">
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank" class="">http://markmail.org/search/?q=<wbr class="">ParaView</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank" class="">http://public.kitware.com/<wbr class="">mailman/listinfo/paraview</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>