adriente / espm

Repository for the code of the simplex non-negative matrix factorization algorithm for EDXS data
MIT License
12 stars 2 forks source link

Detector angles not read from Velox .emd files #4

Open dtlalexander opened 3 days ago

dtlalexander commented 3 days ago

When loading .emd files using hyperspy and then working with them in espm, it seems that the EDX detector angles (elevation, azimuth) are not read. Hyperspy sets the elevation to a default value of 35 degrees and azimuth of 0 degrees. When going to espm, the default values are instead 22 degrees elevation and 0 degrees azimuth. I can use set_analysis_parameters to set the correct values*, but in principle it should be possible to read the correct values from the .emd files since they are in the original_metadata. Might be more a hyperspy issue than espm?

*For SuperX G2, elevation angle is 18 degrees, and azimuths are respectively 45, 135, 225, 315 degrees for the four different detectors.

adriente commented 6 hours ago

Ideally, this is an hyperspy community issue. And a bit more precisely, it is a rosettasciio issue I think.

I can implement a temporary solution in the form of a function "get_original_metadata".