SAGA-GIS Module Library Documentation (v2.1.3)

Module BSL

Parameters

 NameTypeIdentifierDescriptionConstraints
OutputOutput (*)Grid list (optional output)OUTPUT--
OptionsBSL ScriptLong textBSL-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 ProgressBooleanPROGRESS-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