Map and Table Calculation

MAPCOLS( ) function

Returns the number of columns of a raster map.

Syntax

MAPCOLS(RasterMap)

Input

RasterMap is a raster map

Output

MAPCOLS returns: a value
Domain: system domain Value

Tips:

Usable in

Simple calculators, MapCalc, TabCalc

Examples

Pocket line calculator examples:

? MAPCOLS(DEM)

returns the number of columns of raster map DEM, e.g. 637

MapCalc example:

OutMap = MAPCOLS(InMap)

 

InMap

OutMap

10 35 20
35 15 40
? 40 30
3 3 3
3 3 3
3 3 3

TabCalc example:

OutCol = MAPCOLS(InMap)

 

OutCol

3

3

3

3

3

3

3

3

3

See also:

MAPMAX PIXAREA
MAPMIN TBLRECS
MAPROWS TBLCOLS
PIXSIZE TBLVALUE