Feature request #10743

wavelength support for hyperspectral images

Added by Bryan Karpowicz about 7 years ago. Updated over 4 years ago.

Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:19127


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, 2014-06-27 02:26 PM

subset.img (1.71 MB) Bryan Karpowicz, 2014-06-27 02:26 PM


#1 Updated by Giovanni Manghi about 7 years ago

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

#2 Updated by Etienne Tourigny about 7 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?

#3 Updated by Bryan Karpowicz about 7 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.

#4 Updated by Etienne Tourigny about 7 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.

#5 Updated by Bryan Karpowicz about 7 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.

#6 Updated by Matthias Kuhn about 7 years ago

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

#7 Updated by Etienne Tourigny about 7 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?

#8 Updated by Bryan Karpowicz about 7 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.

#9 Updated by Giovanni Manghi over 4 years ago

  • Easy fix? set to No

Also available in: Atom PDF