Inconsistency between metadata reported by LayerProperties/GDAL_Metadata and Raster Source Band Properties Editor
A gain of 1.525902189669642e-05 is reported by the Raster Source Band Properties Editor while it is reported
as NULL in LayerProperties/GDAL_Metadata
https://www.dropbox.com/s/890gstn3cw4u4tl/RasterSourceBandPropertiesEditor.jpeg?dl=0
https://www.dropbox.com/s/5trd8am6x27fxvv/LayerProperties_GDAL_Metadata.jpeg?dl=0
Version 3.10.0.20220401T124144.develop c7d679b
Comments (6)
-
reporter -
reporter Closing EnMapBox (not QGIS) and reopening changes the behaviour of Source Band Properties Editor back to the previous one…
-
Thanks Agus, we (@Benjamin Jakimow and I) are aware that both tools are a bit inconsistent.
The Raster Source Band Properties is reporting the Offset and Scale values of the GDAL data model.
The GDAL Metadata widget is reporting the ENVI Data Offset and Data Gain values.
Currently we have no solution for this.
-
reporter And which of the 2 is the one used by the spectra? What I need are correct spectra, with gain and offset being applied. What do I have to do to get that 1.525902189669642e-05 actually applied to the spectra?
Perhaps another reason for #1347 ?
-
And which of the 2 is the one used by the spectra? What I need are correct spectra, with gain and offset being applied. What do I have to do to get that 1.525902189669642e-05 actually applied to the spectra?
The offset and scale from the GDAL data model are relevant.
ENVI offset and gain is ignored by QGIS and GDAL.
-
reporter Then I understand that the problem is that the GDAL driver does not read all hdr fields (eg, data gain values), right?
Therefore #1347 would be a way to solve the problem: your own way to import the hdr fields through a button in the metadata editor.
In the meantime, is there a way to apply the gain and offset to the spectra through the Spectral Library settings?
- Log in to comment
and surprisingly, metadata of the same, unchanged tif is reported empty by aster Source Band Properties Editor
(LayerProperties/GDAL_Metadata still reports the same)
https://www.dropbox.com/s/rv7tk4riui3udge/RasterSourceBandPropertiesEditor_later.jpeg?dl=0