-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading EBSP patterns and settings from other formats than Bruker's #1
Comments
Hi - thanks for this note. It would be good to have this in a formation which is as close as possible to the HDF5 format that Bruker does this. We have a number of ancillary codes that work with this format (and for instance there is a MTEX reader too), so it would be convenient to keep this similar. This would also provide a method to enable users of other software to 'wrap' their patterns and information into a similar file. In terms of key items in the file, I think you have these in the list. MapData is not needed (as this would be created in indexing - as you note). For CoordSystems - we assume TRZP for the code at present, but this may need changing for other systems - I would not worry about this too much at the moment, but demonstrate that you can get the correct orientation for a non symmetric unit cell cell (as per the tutorial paper). If you are able to write a short converter file to make the HDF5 file from your inputs, and willing to share one example file pair, we can add the converter into the main branch of the code, so people can have a 'pre step' of building the HDF5 as an example for their own use. This will also motivate me to build a post processor to wrap a H5 format which can be stored for offline use & quick reading by MTEX. Regards, |
Sorry for the late reply. Since I started this issue I have been working on a 'subpackage' of HyperSpy for EBSD patterns and have gotten familiar with their way of loading data into HyperSpy structures. They have a general I think this approach is better for AstroEBSD than my initial suggestion of creating HDF5 files of all my NORDIF .dat files before reading them into AstroEBSD. As far as I can see, only custom versions of |
Hi, Delayed too. I've written a HDF5 writer function (it's in the EBSD 2019 pre-release branch - we are just bug testing - look for get/bCreateHDF5.m and decks/EBSD_2019_Astro2.m for an alternative). Having different file readers is find in principal though (but this gets messy quickly). If you have an example dat file to share & your file reader then I can peek at how we can join these together. Ben |
Hi Ben, in my fork in a branch named A small Nordif example data set can be found in another repo, https://github.com/hwagit/astroebsd-nordif-tutorial/tree/master/data, in which I've also made available a brief tutorial PDF aimed at students at our university (NTNU) with an interest in indexing their Nordif data using AstroEBSD. Håkon |
Problem
I don't have Bruker eSprit, but pattern intensities stored in a 4D HDF5 file and a separate text file with settings (such as grid dimensions, step size, pattern resolution in pixels etc.), acquired using NORDIF. I have made a simple reader for this format (in my fork of this repo), enabling me to index my patterns using AstroEBSD (thank you so much!).
If this reader is to be included in the main repo, what format should the patterns be in (e.g. grid dimensions or line?), and how should the settings be included in the HDF5 file?
Ideally this reader should be made so that more people can use it for their patterns, and not only users of the NORDIF software.
Suggested solution
One HDF5 file with both patterns and settings is best. As far as I can tell, AstroEBSD only needs for the following Matlab structures (following your conventions in Tutorial: Crystal orientations and EBSD — Or which way is up?):
MicroscopeData
:NROWS
: # patterns in XsNCOLS
: # patterns in YsWD
: working distance in mm, ZsSampleTilt
: in degreesCameraTilt
: in degreesPatternWidth
: # pixels in XdPatternHeight
: # pixels in YdXSTEP
: step size in Xs in micronsYSTEP
: step size in Ys in micronsCoordSystems
: e.g. Top Right Z Plus for Bruker coordinates, or Top Left Z Minus for EDAX coordinates (?)MapData
: nothing, as these matrices (detector distances, pattern centres etc.) are created during indexing?EBSD_DataInfo
:PW
: pattern width, # pixels in XdPH
: pattern height, # pixels in YdThese settings should be stored in the HDF5 file structure. Is there any best way to do this?
Additional context
Is there a good reason to structure the HDF5 file the same way Bruker does?
The text was updated successfully, but these errors were encountered: