Map and Table Calculation

CLFY function

Classifies a value map or a value column according to a Group domain.

Syntax

CLFY(ValueMap, GroupDomain)
CLFY(ValueColumn, GroupDomain)

Input

ValueMap is a value raster map
Domain type: any Value domain
ValueColumn is a value column
Domain type: any Value domain
GroupDomain is a Group domain; it lists the upper boundary values of the groups, and the class names and group names for the output map or the output column.

Output

CLFY(ValueMap, GroupDomain) returns: a map with classified values
CLFY(ValueColumn, GroupDomain) returns: a column with classified values
Domain: the group domain GroupDomain

Notes:

Tips:

Usable in

MapCalc, TabCalc

Examples

MapCalc example:

Suppose, you have a raster map SlopePct with slope values ranging from 0 to 200%, which you wish to classify into the following relief classes: Flat (0-2%), Undulating (2-8%), Rolling (8-16%), Hilly (16-30%), Mountainous (>30%) (FAO).

 

  1. Create a group domain, for instance called ReliefClass, where you specify the upper boundaries and the output Group names as:
  2.    

    Upper
    Boundary


    Group Name

    2

    Flat

    8

    Undulating

    16

    Rolling

    30

    Hilly

    200

    Mountainous

     

  3. To classify the values of map SlopePct according to group domain ReliefClass, and create an output map Relief;
  4.    

  5. The output map will contain the classified values:
  6. SlopePct

    Relief

    6 10 20 40
    4 12 20 25
    3 7 12 10
    1 5 5 5
    U R H M
    U R H H
    U U R R
    F U U U

    For ranges of values of input map SlopePct, containing slope values in percentages, relief class names are assigned in output map Relief. The ranges and class names are specified in group domain ReliefClass. In the output map, read for F Flat, for U Undulation, for R Rolling, for H Hilly and for M Mountainous.

TabCalc example:

Suppose, you have a column SoilDepth with soil depths which you wish to classify into the following classes: 0-25 Very shallow, 25-50 Shallow, 50-100 Moderately Deep, 100-150 Deep, and >150 Very deep (USDA Soil Classification System).

 

  1. Create a domain Group, for instance called DepthClass, where you specify the upper boundaries and the output Group names as:
  2.  

    Upper
    Boundary


    Group Name

    25

    Very shallow

    50

    Shallow

    100

    Moderately deep

    120

    Deep

    400

    Very deep

     

  3. To classify the values of column SoilDepth according to group domain DepthClass, and create output column SoilDepthClass:
  4.  

  5. In the table, column SoilDepthClass is created and filled according to the Group domain.
  6.  

    Sample

    SoilDepth

    SoilDepthClass

    1

    15

    Very shallow

    2

    45

    Shallow

    3

    95

    Moderately deep

    4

    20

    Very shallow

    5

    40

    Shallow

    6

    60

    Moderately deep

    7

    110

    Deep

See also: