Hi all,
I have Raman spectra maps obtained using Renishaws Wire software, and I would like to do PCA on those maps. I don't think it is easy to deal with Renishaws own .wdf format, but the maps can be exported to .txt in the software and are then organised in a tab-separated format by X, and Y-coordinates and then Wavenumber and Intensity as a long list. I have attached a small sample here of a 4x2 pixel map with spectra obtained between approx. 3500 /cm to 900 /cm.
I am not super experienced in Python, but I understand that it should be possible to read this data into a numpy array using something along the lines of:
path = 'small.txt'
d = np.loadtxt(path, delimiter='\t')
and then load it into HyperSpy with:
s = hs.signals.Signal1D(d)
s
However, to correctly do that and be able to work with the spectra in HyperSpy it will be necessary to restructure the array in some way. Any recommendations on how to do that?
Best regards,
Emil Bjerglund Pedersen