SCIRun User Mailing List

Text archives Help

Re: [SCIRUN-USERS] SCIRun data conversion issues

Chronological Thread 
  • From: jess <>
  • To: yanfeiyang <>
  • Cc: scirun <>
  • Subject: Re: [SCIRUN-USERS] SCIRun data conversion issues
  • Date: Sun, 27 Sep 2020 16:10:25 -0600
  • Ironport-sdr: Ky0kE7WDyfcGyPDliFhBn/t88qW3kcx1h6zclSFvD7KKuCdQL7JW6ur+dem7865+W00KfS6SRH JspfYMWG/xEKs+7Gxf4Bf0rWJZOVURebCSszlnbsR1IkiJfb1SPxNVCAnRhPI7Ua0MuWSO9j3s 4HdvSJ8Lq/x1VA/aujpKR546odOERz0xOo20ex5S97ywg6ijElI2hdBWiFNq1yv/qWnrsLCL2j 9duiCLFcpkurg/bhf89druNkAt42QcjGiCU0sSShD/Cr9J7+bW0DO+7JvPA0obbk4dE+H9ZIUm CLw=

Hi Yanfeiyang,

If I understand your question, you are having trouble reading mat files from SCIRun into Matlab and from Matlab into SCIRun.  We haven’t seen a problem with loading mat files from SCIRun into Matlab before, unless it is a large data format. It may be possible that you uncovered a bug.  You could create a github issue for this or further explain it here, but we would need an example file and a description (steps to reproduce it, and matlab, SCIRun and operating system version) of how you generated it.  

For loading mat data into SCIRun, it is possible through readfield, though it can be a bit tricky.  SCIrun will convert a matlab structure array (length of one) with fields that correspond to the SCIrun field properties.  The simplest geometry to import is a point cloud, and in this case the matlab structure will need to at least have a field for the node locations.  It needs to be named ‘pts’ or ‘node’ and should contain a matrix of 3xn or nx3 where n is the number of nodes. More field properties can be added as needed, such as field data (a field called ‘field’ containing an array of data of length n). A file with only this structure will load into SCIRun via the ReadField module, but if multiple structures are saved in one file you can try ImportFieldsFromMatlab.  If you have specific geometries and data that you are struggling with we can address those.  


On Sep 26, 2020, at 9:36 PM, yanfeiyang <> wrote:

When viewing the SCIRun packet, we found that some. Mat files could not be opened with MATLAB. May I ask why? Besides, mat files could not be read by readfield module or converted into. fld files.
We are also unable to view the internal data of the.fld literature. Is there any way to convert our geometric structure to the.fld file format.
Looking forward to your reply.

签名由 网易邮箱大师 定制

SCIRun users mailing list:
To unsubscribe, email with the "unsubscribe scirun-users" in the message body.

Archive powered by MHonArc 2.6.18.

Top of page