Dream 3d to Matlab

165 views
Skip to first unread message

David Harra

unread,
May 4, 2021, 4:34:16 PM5/4/21
to dream3d-users
I am very new to Dream3d and coding in general. 

My objective is to take my raw ESBD data, to put it into Matlab then eventually OnScale to simulate waves through the EBSD data. My raw data is an ANG files which I have now saved as an H5EBSD file. 

I also have 3 other output files in the form  .am , .dream3d and .xdmf

I have attached an image of my files and the Matlab types of files I am supposed to use.

In the Matlab image, How would I generate the FeatureDataDeg.csv file and also use my EBSD data to run in Matlab?

Thanks

Dave :)

Screenshot (51).png

rwde...@gmail.com

unread,
May 5, 2021, 12:09:28 PM5/5/21
to dream3d-users
Dave,

I'm not totally clear on what you need to do, but you can use the h5read command in Matlab to read data straight out of the .dream3d files which are HDF5 files (https://www.mathworks.com/help/matlab/ref/h5read.html). You can get to most of the data you might need with the paths DataContainers/ImageDataContainer/CellData and DataContainers/ImageDataContainer/CellFeatureData

so you can get the Euler angles, for example, like this: 

eulers = h5read('your.dream3dFile', DataContainers/ImageDataContainer/CellData/EulerAngles);

or feature sizes like this:
featureSize = h5read('your.dream3dFile', DataContainers/ImageDataContainer/CellFeatureData/FeatureSizes);

I also find HDFView (https://www.hdfgroup.org/downloads/hdfview/) useful. It's a free GUI for poking around in HDF5 files you can use to figure out what is stored where within your .dream3d files

Hope this helps,
Ryan

Michael Jackson

unread,
May 5, 2021, 4:24:41 PM5/5/21
to David Harra, dream3d-users

If you want to be brave and take a look at the latest nightly build go to http://dream3d.bluequartz.net/binaries/experimental/ and pick the latest date that has a build for your operating system.

 

I point you to that version because there is an Onscale Table writing filter in that version. This would allow you import your EBSD data, segment the data and then write out an OnScale Table file.

 

--

Mike Jackson

--
You received this message because you are subscribed to the Google Groups "dream3d-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dream3d-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dream3d-users/87ec00f0-7f0f-4f19-a15c-5867e170096cn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages