SAGA 9.3.3 | Tool Library Documentation

Create Grid System


Description

This tool creates a new user specified Grid System for use with other tools. First of all, please consider the following issues before using the tool: (a) all calculations of the tool refer to the lower left corner of the grid system, i.e. the xMin and yMin values. This coordinate is fixed unless you specify an offset. (b) the tool follows the philosophy of SAGA in that the values describing the extent refer to the cell centers. If you like to match the extent with the border of a grid, use an offset. The tool provides four possibilities to set/determine the extent of the grid system: (1) by specifying the coordinate of the lower left cell (xMin, yMin) and the number of cells in W-E (NX) and S-N (NY) direction (2) by specifying the coordinates the of lower left (xMin, yMin) and the upper right (xMax, yMax) cell (3) by the extent of the shape(s) provided in the Data Objects section (4) by the extent of the grid(s) provided in the Data Objects section After selecting the appropriate method to determine the extent, the next step is to specify the Cellsize of the new grid system. For all methods supplied to determine the extent but number (1), three possibilities are provided to adjust Cellsize and grid system extent (please remember, the lower left corner is fixed!): (I) adjust the extent to match the Cellsize (II) adjust the Cellsize to match the extent in E-W direction (III) adjust the Cellsize to match the extent in S-N direction Finally it is possible to apply an offset to the lower left corner of the grid system. In this case check the Use Offset option and specify the offset in W-E and S-N direction. Positive values result in a shift in E/N, negative in W/S direction. In order to create the grid system the tool needs to create a dummy grid.


Parameters

 NameTypeIdentifierDescriptionConstraints
InputShapes Layersshapes list, inputSHAPESLIST--
Gridsgrid list, inputGRIDLIST--
OutputDummy Griddata object Grid, output, optionalGRID--
OptionsInitialization Valuefloating point numberINITValue which is assigned to the dummy grid.Default: 0.000000
Cellsizefloating point numberCELLSIZE-Minimum: 0.000000 Default: 10.000000
Extent DefinitionchoiceM_EXTENT-Available Choices: [0] lower left coordinate and number of rows and columns [1] lower left and upper right coordinates [2] one or more shapes layers [3] one or more grids Default: 0
AdjustchoiceADJUST-Available Choices: [0] extent to cell size [1] cell size to left-right extent [2] cell size to bottom-top extent Default: 0
Leftfloating point numberXMIN-Default: 0.000000
Rightfloating point numberXMAX-Default: 100.000000
Columnsinteger numberNX-Minimum: 1 Default: 10
Bottomfloating point numberYMIN-Default: 0.000000
Topfloating point numberYMAX-Default: 100.000000
Rowsinteger numberNY-Minimum: 1 Default: 10
Use OffsetbooleanUSEOFF-Default: 0
X Offsetfloating point numberXOFFSETPositive values result in a shift in E direction.Default: 0.000000
Y Offsetfloating point numberYOFFSETPositive values result in a shift in N direction.Default: 0.000000

Command Line


Usage: saga_cmd grid_tools 23 [-GRID ] [-INIT ] [-CELLSIZE ] [-M_EXTENT ] [-ADJUST ] [-XMIN ] [-XMAX ] [-NX ] [-YMIN ] [-YMAX ] [-NY ] [-SHAPESLIST ] [-GRIDLIST ] [-USEOFF ] [-XOFFSET ] [-YOFFSET ]
  -GRID:       	Dummy Grid
	data object Grid, output, optional
  -INIT:    	Initialization Value
	floating point number
	Default: 0.000000
  -CELLSIZE:	Cellsize
	floating point number
	Minimum: 0.000000
	Default: 10.000000
  -M_EXTENT:   	Extent Definition
	choice
	Available Choices:
	[0] lower left coordinate and number of rows and columns
	[1] lower left and upper right coordinates
	[2] one or more shapes layers
	[3] one or more grids
	Default: 0
  -ADJUST:     	Adjust
	choice
	Available Choices:
	[0] extent to cell size
	[1] cell size to left-right extent
	[2] cell size to bottom-top extent
	Default: 0
  -XMIN:    	Left
	floating point number
	Default: 0.000000
  -XMAX:    	Right
	floating point number
	Default: 100.000000
  -NX:         	Columns
	integer number
	Minimum: 1
	Default: 10
  -YMIN:    	Bottom
	floating point number
	Default: 0.000000
  -YMAX:    	Top
	floating point number
	Default: 100.000000
  -NY:         	Rows
	integer number
	Minimum: 1
	Default: 10
  -SHAPESLIST: 	Shapes Layers
	shapes list, input
  -GRIDLIST:   	Grids
	grid list, input
  -USEOFF:     	Use Offset
	boolean
	Default: 0
  -XOFFSET: 	X Offset
	floating point number
	Default: 0.000000
  -YOFFSET: 	Y Offset
	floating point number
	Default: 0.000000