Spectral Index Optimizer
This algorithm finds the optimal two-feature index by modelling a target variable via linear regression.
Usage:
Start the algorithm from the Processing Toolbox panel.
Select a training dataset or create one by clicking on the processing algorithm icon. If necessary, adjust the index formula. Then click run.
Parameters
- Training dataset [file]
The regression dataset.
- Formular [string]
The formular with variable features A and B to be optimized, and up to three fixed features F1, F2 and F3. Default: (A-B) / (A+B)
- Max. features [number]
Limit the number of features to be evaluated. Default is to use all features.
- Fixed feature F1 [number]
Specify to use a fixed feature F1 in the formular.
- Fixed feature F2 [number]
Specify to use a fixed feature F2 in the formular.
- Fixed feature F3 [number]
Specify to use a fixed feature F3 in the formular.
Outputs
- Output score matrix [rasterDestination]
Raster file destination.
Command-line usage
>qgis_process help enmapbox:SpectralIndexOptimizer
:
----------------
Arguments
----------------
dataset: Training dataset
Argument type: file
Acceptable values:
- Path to a file
formular: Formular
Default value: (A-B) / (A+B)
Argument type: string
Acceptable values:
- String value
- field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field
- expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression
maxFeatures: Max. features (optional)
Argument type: number
Acceptable values:
- A numeric value
- field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field
- expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression
f1: Fixed feature F1 (optional)
Argument type: number
Acceptable values:
- A numeric value
- field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field
- expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression
f2: Fixed feature F2 (optional)
Argument type: number
Acceptable values:
- A numeric value
- field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field
- expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression
f3: Fixed feature F3 (optional)
Argument type: number
Acceptable values:
- A numeric value
- field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field
- expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression
outScoreMatrix: Output score matrix
Argument type: rasterDestination
Acceptable values:
- Path for new raster layer
----------------
Outputs
----------------
outScoreMatrix: <outputRaster>
Output score matrix