3

I have changed my computer and installed QGIS on the new one. Now, I can't normalise a Raster, neither the LTR 3.16.16 nor the last one, when I could with the older 3.16.

I found that the problem is SAGA, or I think that. Just installed QGIS come with SAGA 7.8.2, and when I try the Raster normalization I get this view.

enter image description here

On my old computer, with SAGA 2.3.2 I haven't any problem.

enter image description here

How can I solve it?

0

1 Answer 1

7

I think the SAGA Description file for the Raster normalization tool is not properly configured. (Each Description file defines the UI settings of the SAGA tool in the QGIS processing environment).

Based on QGIS 3.22.3

(1) Try and find grid_calculus_grid_normalization.txt in the QGIS installation folder.

In my QGIS 3.22.3 on Windows10 environment, the Description file is located in "C:\Program Files\QGIS 3.22.3\apps\qgis\python\plugins\sagaprovider\description".

(2) Open the grid_calculus_grid_normalization.txt by any text editor application (e.g. Notepad++). You will probably see four lines:

Grid Normalization
grid_calculus
QgsProcessingParameterRasterLayer|INPUT|Grid|None|False
QgsProcessingParameterRasterDestination|OUTPUT|Normalized Grid

(3) Then replace it with below:

Grid Normalisation
grid_calculus
QgsProcessingParameterRasterLayer|INPUT|Grid|None|False
QgsProcessingParameterNumber|RANGE_MIN|Target Range (min)|QgsProcessingParameterNumber.Integer|0|False|None|None
QgsProcessingParameterNumber|RANGE_MAX|Target Range (max)|QgsProcessingParameterNumber.Integer|1|False|None|None
QgsProcessingParameterRasterDestination|OUTPUT|Normalised Grid

(4) You may notice you have just added line 4 and line 5. Save the file (you may need writing permission to do so).

(5) Restart the Raster normalization tool, now you will have Target Range (min) and Target Range (max) in the UI window (See below).

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.