SAGA 9.6.1 | Tool Library Documentation

BSL


Description

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
OutputOutputgrid 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

Command Line


Usage: saga_cmd grid_calculus_bsl 0 [-PARAMETERS_GRID_SYSTEM_D ] [-PARAMETERS_GRID_SYSTEM_X ] [-PARAMETERS_GRID_SYSTEM_Y ] [-PARAMETERS_GRID_SYSTEM_NX ] [-PARAMETERS_GRID_SYSTEM_NY ] [-PARAMETERS_GRID_SYSTEM_FILE ] [-OUTPUT ] [-BSL ] [-PROGRESS ]
  -PARAMETERS_GRID_SYSTEM_D:	Cell Size
  -PARAMETERS_GRID_SYSTEM_X:	Lower Left Center Cell X-Coordinate
  -PARAMETERS_GRID_SYSTEM_Y:	Lower Left Center Cell Y-Coordinate
  -PARAMETERS_GRID_SYSTEM_NX:  	Number of Columns
  -PARAMETERS_GRID_SYSTEM_NY:  	Number of Rows
  -PARAMETERS_GRID_SYSTEM_FILE:	Grid File
  -OUTPUT:                     	Output
	grid list, output, optional
  -BSL:                        	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:                   	Show Progress
	boolean
	Default: 1