Returns the maximum value of a value map.
Syntax
MAPMAX(ValueMap)
Input
ValueMap | is a raster, polygon, segment or point map |
Domain type: | any Value domain |
Output
MAPMAX returns: | a value |
Domain: | system domain Value |
Note:
By default, this function works on raster maps with extension .mpr; you can omit the extension .mpr. To use this function on polygon maps, segment maps or point maps, you need to specify the object's extension (.mpa, .mps or .mpp).
Tips:
Usable in
Simple calculators, MapCalc, TabCalc
Examples
Pocket line calculator examples:
? MAPMAX(DEM) |
returns the maximum value of raster map DEM, e.g. 5172 |
? MAPMAX(Rain.mpp) | returns the maximum value of point map Rain, e.g. 123 |
MapCalc example:
OutMap = MAPMAX(InMap)
InMap |
OutMap |
||||||||||||||||||
|
|
OutMap1 = InMap1 >= 0.75 * MAPMAX(InMap1)
InMap1 |
OutMap1 |
||||||||||||||||||
|
|
OutMap1 uses the Bool domain and displays True only for the values between 75 and 100% of the maximum value of InMap1. The rest of the pixels are assigned False. In this example the maximum of InMap1 is 40 and only for values larger than or equal to 30 the statement is true.
TabCalc example:
OutCol = InCol + MAPMAX(InMap)
InCol |
OutCol |
10 |
55 |
35 |
80 |
20 |
65 |
35 |
80 |
15 |
60 |
40 |
85 |
? |
? |
40 |
85 |
30 |
75 |
See also:
MAPMIN | PIXAREA |
MAPROWS | TBLRECS |
MAPCOLS | TBLCOLS |
PIXSIZE | TBLVALUE |