MechMicroMan / DefDAP

A python library for correlating EBSD and HRDIC data
Apache License 2.0
36 stars 18 forks source link

Importing EBSD map from beta-reconstruction #26

Closed ClaudiusD closed 5 years ago

ClaudiusD commented 5 years ago

I'm trying to import a EBSD-map (100% beta/cubic - phase) which has been created in a beta-reconstruction.

When importing the .cpr file I receive the follwoing error message:

ValueError: cannot reshape array of size 98286 into shape (284,412)

I uploaded the EBSD file to a dropbox folder

https://www.dropbox.com/sh/uo0v926gt50b2d9/AAAxHs7ooNlCWPGEyRb6eYuGa?dl=0

Claudius

mikesmic commented 5 years ago

Looks like the when you convert ctf back to cpr/crc there is less data in the binary file.

Until I can think how to implement a file size check you can temporarily fix it by changing line 63 of the io.py file from: ('IB6', 'f')]) to: ])

However you wont be able to load in beta reconstructed maps and normal maps at the same time with that change.

ClaudiusD commented 5 years ago

That worked. Thank you

mikesmic commented 5 years ago

A CTF data file loader has now been added which can be used to load beta construction maps. When creating an EBSD map instance set parameter dataType="OxfordText" to load a CTF file.