SAGA-GIS Tool Library Documentation (v7.8.2)

Tool BSL

Boehner's Simple Language (BSL) is a macro script language for grid cell based calculations. BSL has been developed by C. Trachinow and J. Boehner originally as part of the grid analysis software SADO, 'System fuer die Analyse Diskreter Oberflaechen'.

References:
Boehner, J., Koethe, R., Trachinow, C. (1997): Weiterentwicklung der automatischen Reliefanalyse auf der Basis von digitalen Gelaendemodellen. – Göttinger Geogr. Abh. 100: 3-21.

Parameters

 NameTypeIdentifierDescriptionConstraints
OutputOutput (*)Grid list, output, optionalOUTPUT--
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_D <double>] [-PARAMETERS_GRID_SYSTEM_X <double>] [-PARAMETERS_GRID_SYSTEM_Y <double>] [-PARAMETERS_GRID_SYSTEM_NX <num>] [-PARAMETERS_GRID_SYSTEM_NY <num>] [-PARAMETERS_GRID_SYSTEM_FILE <str>] [-OUTPUT <str>] [-BSL <str>] [-PROGRESS <str>]
  -PARAMETERS_GRID_SYSTEM_D:<double>	Cell Size
  -PARAMETERS_GRID_SYSTEM_X:<double>	Lower Left Center Cell X-Coordinate
  -PARAMETERS_GRID_SYSTEM_Y:<double>	Lower Left Center Cell Y-Coordinate
  -PARAMETERS_GRID_SYSTEM_NX:<num>  	Number of Columns
  -PARAMETERS_GRID_SYSTEM_NY:<num>  	Number of Rows
  -PARAMETERS_GRID_SYSTEM_FILE:<str>	Grid File
  -OUTPUT:<str>                     	Output
	Grid list, output, optional
  -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