Feature request #10743

wavelength support for hyperspectral images

Added by Bryan Karpowicz almost 3 years ago. Updated almost 3 years ago.

Status:Open Start Date:06/27/2014
Priority:Normal Due date:
Assigned to:- % Done:


Target version:Future Release - Nice to have
Platform: Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:


When loading a hyperspectral image currently qgis will load the first three bands. It would be extremely useful if it could load some default color schemes like "true color", or "color infrared".

subset.hdr (10.8 kB) Bryan Karpowicz, 06/27/2014 02:26 pm

subset.img (1.7 MB) Bryan Karpowicz, 06/27/2014 02:26 pm


Updated by Giovanni Manghi almost 3 years ago

  • Category set to Rasters
  • Target version set to Future Release - Nice to have

Updated by Etienne Tourigny almost 3 years ago

This would be nice indeed.

It would be better if you give more details about how it should work

1- how to define which bands are "true color" or "color infrared"
2- what to do exactly once these are identified. True color means assign the RGB colors to the right bands right? Now what about color infrared?

Updated by Bryan Karpowicz almost 3 years ago

I was thinking something similar to what ENVI does where RGB true color maps to R-0.64 µm, G-0.55 µm, and B-0.47 µm, and CIR maps to R-0.86 µm, G-0.65 µm, and B-0.55 µm. If those precise bands aren't available, pick the nearest neighbor.

Use those to start, and maybe add something else in the 0.4-2.5 µm as this is typically what most new hyperspectral imagers shoot for.

Updated by Etienne Tourigny almost 3 years ago

That would require some guessing or metadata to know the wavelength of each band... if you can give some specific information it would be useful.

Updated by Bryan Karpowicz almost 3 years ago

I was thinking that if you had metadata like exists in a ENVI raster, you could pull that information, interpolate which bands to use, if exists, otherwise just use bands as it exists now.

Updated by Matthias Kuhn almost 3 years ago

Keeping the information about the wavelength in the band metadata would also be useful for other things like spectral plots.

Updated by Etienne Tourigny almost 3 years ago

Bryan - is this only for ENVI datasets? DO you have an exmaple of e.g. GTiff datasets that have wavelength information?

It would be interesting to use this for MODIS and Landsat imagery, although how would we guess the proper bands or even reliably recognize the source as MODIS or Landsat?

Updated by Bryan Karpowicz almost 3 years ago

Off the top of my head, I can't think of any data source which has a geotiff with wavelength information embedded in it. Landsat just refers to their's by band #, and I think MODIS does also. I'm pretty sure you could identify MODIS identifying metadata embedded within the hdf 4 file.

Also available in: Atom