Map and Table Calculation

PIXSIZE( ) function

Returns the pixel size of a raster map or a georeference.

Syntax

PIXSIZE(RasterMap)
PIXSIZE(GeoReference.grf)

Input

When used on raster maps:

RasterMap is a raster map

When used on georeferences:

GeoReference.grf is a georeference

Output

PIXSIZE returns: a value
Domain: system domain Value

Note:

For georeferences which are not a georeference corners, an approximation of the pixel size is returned.

Tips:

Usable in

MapCalc, TabCalc, Simple calculators

Examples

Pocket line calculator examples:

? PIXSIZE(DEM)

returns the pixel size of raster map DEM, e.g. 20

? PIXSIZE(TM.grf)

returns the pixel size of georeference TM, e.g. 30.58 

MapCalc example:

Suppose map InMap has a pixel size of 20.

OutMap = InMap * PIXSIZE(InMap)

InMap

OutMap

10 35 20
35 15 40
? 40 30
200 700 400
700 300 800
? 800 600

Tip:

An applied example of the PIXSIZE function in combination with other functions is given in the topic How to calculate a slope map.

TabCalc example:

OutCol = InCol * PIXSIZE(InMap)

 

InCol

OutCol

10

200

35

700

20

400

35

700

15

300

40

800

?

?

40

800

30

600

See also:

MAPMAX PIXAREA
MAPMIN TBLRECS
MAPROWS TBLCOLS

MAPCOLS TBLVALUE