lumispy
lumispy copied to clipboard
Dealing with SEM/HAADF complementary data with their respective luminescence
I have recently been wondering on what the best strategy would be to do the following:
All of my CL-SEM data always comes with SE images with it (I suppose for CL-TEM the equivalent would be a HAADF image). These SE images are acquired at the same time as the luminescence. However, they are not integrated with hyperspy at all.
While it is true that you can load the SE image separately (as s
) and the use this s
object as navigation_axis
for the cl
object, this all needs to be done manually.
What's worse is that when I do some processing on the cl
object (e.g. crop or subindex some of the navigation axes) the s
SE image does not link with the cl
object in anyway.
Ideally, i would like to link these 2 datasets together.
I have an idea to do that, but I wanted too quickly discuss the approach before I get into the coding. One way would be to keep the SE image array in the metadata and, every time you apply a certain operation that modifies the navigation axis, then those changes are also applied to the SE metadata (e.g. crop pixels). Moreover, I would like to have an option when plotting where we can specify to use the SE image as navigation axis instead of the default "panchromatic".
Can you think of any better ways to implement such feature?