SAGA-GIS Tool Library Documentation (v6.1.0)

Tool BSL

Parameters

 NameTypeIdentifierDescriptionConstraints
OutputOutput (*)Grid list (optional output)OUTPUT--
OptionsGrid systemGrid systemPARAMETERS_GRID_SYSTEM--
BSL 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 <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