Python Forum

Full Version: Hyperspectral
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone,

I would like to build a hyperspectral cube from a matrix of infrared spectrum and number of pixels on x and y axes.
For exemple, I have 100 spectra with 500 wavelengths and I would like to turn this matrix into a 10 * 10 image with each pixels corresponding to a spectrum...
How can I compute it with python ?

Thank you !

Nicolas
(Nov-06-2018, 07:35 PM)colapili Wrote: [ -> ]How can I compute it with python ?
How would you compute it without python?
I don't know in reality...

This is the exemple show in the documentation of package Hyperspy.

my_np_array = np.random.random((10,20,100))
s = hs.signals.Signal1D(my_np_array)
s

<Signal1D, title: , dimensions: (20, 10|100)>

But in my case I have only a matrix of 100 spectra and the information of image weight (10*10 pixels)