Module BSL
- Author: SAGA User Group Associaton (c) 2009
 
- Specification: grid
 
- Menu: Grid|Calculus
 
Parameters
|   | Name | Type | Identifier | Description | Constraints | 
| Output | Output (*) | Grid list (optional output) | OUTPUT | - | - | 
| Options | 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 <str>] [-PARAMETERS_GRID_SYSTEM_Y <str>] [-PARAMETERS_GRID_SYSTEM_D <str>] [-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:<str> 	Grid system
	Grid system
  -PARAMETERS_GRID_SYSTEM_Y:<str> 	Grid system
	Grid system
  -PARAMETERS_GRID_SYSTEM_D:<str> 	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