[Paraview] reading MATLAB file

Heiland, Randy heiland at iu.edu
Tue Oct 10 14:18:04 EDT 2017


Hello,

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.

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.

Using PV 5.4.1. And the solution needs to be easily adopted by others who will be using PV.

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.

I’ve seen https://www.paraview.org/Wiki/Plugin_HowTo <https://www.paraview.org/Wiki/Plugin_HowTo> and I was also curious if a “Programmable Source” would be an option. 

thanks! (and it’s nice to re-join the community after a long absence)
-Randy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171010/958d4d53/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4035 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171010/958d4d53/attachment.bin>


More information about the ParaView mailing list