rosettasciio icon indicating copy to clipboard operation
rosettasciio copied to clipboard

postion data in spot area spectra/spot sequences

Open madmin23 opened this issue 1 year ago • 2 comments

Describe the functionality you would like to see.

When reading .ASW files position data of the spot sequence (.eds-files) should be read in and additionally displayed properly in the according image.

Describe the context

Reading .ASW files using rsciio.jeol.file_reader() for files that contain spot sequences, the position information of the individual spectra is not read. Therefor all spectra have no positional component and can not be located in the accompanying image. This is necessary for proper analysis of the spectra.

Additional information

The positions for the individual spectra can be found in the original_metadata of the .ASW file using the keyword original_metadata["asw_viewdata"]["PositionMM"]. This returns a list containing four numbers in the style [x,y,x,y] in the range {-2e-5,0,2e-5} (for my measurement). Plotting x and y results in the measured spot pattern, but is not trivially transformed to the image dimensions (in my case 512px by 512px).

madmin23 avatar Nov 27 '24 15:11 madmin23

Hi @madmin23 from my understanding it shouldn't be too hard to make that change and support it! What would be very helpful is a minimum example. Something like the smallest (reasonable dataset) you can acquire? Maybe a 2x2 scan?

CSSFrancis avatar Nov 27 '24 15:11 CSSFrancis

Hi @madmin23 from my understanding it shouldn't be too hard to make that change and support it! What would be very helpful is a minimum example. Something like the smallest (reasonable dataset) you can acquire? Maybe a 2x2 scan?

Yes I will prepare one and report back, when I have it.

madmin23 avatar Nov 27 '24 16:11 madmin23