Tool BSL
- Author: SAGA User Group Associaton (c) 2009
- Menu: Grid|Calculus
Parameters
| Name | Type | Identifier | Description | Constraints |
Output | Output (*) | Grid list (optional output) | OUTPUT | - | - |
Options | Grid system | Grid system | PARAMETERS_GRID_SYSTEM | - | - |
BSL Script | Long text | BSL | - | Default: Matrix R(), NIR(), NDVI, RANGE; Point p;
NDVI = R; RANGE = R;
foreach p in R do { NDVI[p] = (NIR[p] - R[p]) / (NIR[p] + R[p]); RANGE[p] = max8(p, R) - min8(p, R); }
showMatrix(NDVI); showMatrix(RANGE);
|
Show Progress | Boolean | PROGRESS | - | Default: 1 |
(*) optional |
Command-line
Usage: saga_cmd grid_calculus_bsl 0 [-PARAMETERS_GRID_SYSTEM_NX <num>] [-PARAMETERS_GRID_SYSTEM_NY <num>] [-PARAMETERS_GRID_SYSTEM_X <double>] [-PARAMETERS_GRID_SYSTEM_Y <double>] [-PARAMETERS_GRID_SYSTEM_D <double>] [-OUTPUT <str>] [-BSL <str>] [-PROGRESS <str>]
-PARAMETERS_GRID_SYSTEM_NX:<num> Grid system
Grid system
-PARAMETERS_GRID_SYSTEM_NY:<num> Grid system
Grid system
-PARAMETERS_GRID_SYSTEM_X:<double> Grid system
Grid system
-PARAMETERS_GRID_SYSTEM_Y:<double> Grid system
Grid system
-PARAMETERS_GRID_SYSTEM_D:<double> Grid system
Grid system
-OUTPUT:<str> Output
Grid list (optional output)
-BSL:<str> BSL Script
Long text
Default: Matrix R(), NIR(), NDVI, RANGE;
Point p;
NDVI = R;
RANGE = R;
foreach p in R do
{
NDVI[p] = (NIR[p] - R[p]) / (NIR[p] + R[p]);
RANGE[p] = max8(p, R) - min8(p, R);
}
showMatrix(NDVI);
showMatrix(RANGE);
-PROGRESS:<str> Show Progress
Boolean
Default: 1