after this I notice the above error, map at the top of edx signal, please help me to run the .bcf file, my aim is I have a roi (left, right, top bottom) values I have need sum spectrum of that area.
when I ran
import hyperspy.api as hs
import scipy
# Load your data (replace with actual data loading code)
data = hs.load('MS-1b_S.bcf')
data= data[4]
data.metadata.Acquisition_instrument.SEM.beam_energy = 50
data.plot()
roi = hs.roi.RectangularROI(left=x1, right=x2, top=y1, bottom=y2)
s_roi = roi.interactive(data, recompute_out_event=None, color='C1')
s_roi = roi(data)
roi_sum = hs.interactive(s_roi.sum, recompute_out_event=None)
roi_sum.plot()
above code, I got the required image, but the spectrum is down.
kindly help me,
the drive link for my .bcf file is this
This is my sample dafault EDX navigator![image](https://github.com/hyperspy/rosettasciio/assets/94546661/77236c0a-fd4e-4a36-9b69-42c262c8e562)
my data is in 280*550 pixels (viewing printing s) but why there is X up to 1.82e+04 and similarly y also. I do not have that much pixcel.
which we can see by this image
![image](https://github.com/hyperspy/rosettasciio/assets/94546661/02b166a2-0b0f-4a7d-864f-79a8361886af)
I would like to share my workflow,
[<Signal2D, title: Video, dimensions: (|550, 284)>, <Signal2D, title: , dimensions: (|1205, 999)>, <Signal2D, title: , dimensions: (|1205, 999)>, <Signal2D, title: , dimensions: (|1205, 999)>, <EDSSEMSpectrum, title: EDX, dimensions: (550, 284|4096)>]
after this I notice the above error, map at the top of edx signal, please help me to run the .bcf file, my aim is I have a roi (left, right, top bottom) values I have need sum spectrum of that area.
when I ran import hyperspy.api as hs
above code, I got the required image, but the spectrum is down.![image](https://github.com/hyperspy/rosettasciio/assets/94546661/4d43fc8d-c9dc-483b-ad98-de65ff58af5d)
kindly help me, the drive link for my .bcf file is this