I have the following data available from the hyperspectral imaging:
- cube_envi32.dat
- cube_envi32.hdr
- roi_masks.bmp
How can I plot the reflectance vs wavelength plot? Is there any sample python code that I can use?
I have the following data available from the hyperspectral imaging:
How can I plot the reflectance vs wavelength plot? Is there any sample python code that I can use?
Copyright © 2021 Jogjafile Inc.
To plot an arbitrary pixel, you can use the
spectral
module to read the pixel data and wavelengths (assuming wavelength metadata are in the ENVI header):If you want to plot spectra interactively, see the
spectral
documentation here.