ILWIS objects

 

Two-dimensional tables    

 

 

A two-dimensional table is used to combine or reclassify two raster maps with a class or ID domain. It defines a value for each possible combination of input classes or IDs.

A two-dimensional table consists of rows which represent one domain and of columns which represent another domain. In the two-dimensional table, you have to assign a value, class name or ID to the fields which represent the combination of these domains. When you apply the two-dimensional table on the command line of the Main window, you need two input raster maps which have the domains as used by the two-dimensional table, the output raster map then contains the values, classes or IDs that you entered in the fields of the two-dimensional table.

Names of two-dimensional tables:

In ILWIS 3, object names comply with Windows long file names. Also Universal Naming Convention (UNC) paths are supported. For more information, see How to use long object names.

To create a two-dimensional table:

Open the File menu of the Main window and select the Create Two-Dimensional Table command, or double-click the New 2DimTbl item in the Operation-list. In the appearing Create 2-Dimensional Table dialog box, select two input domains of raster maps on which you want to apply the two-dimensional table later on.

To display and edit a two-dimensional table:

When you create a new two-dimensional table, it is directly displayed in a table window where you can also directly edit it.

To open and edit an existing two-dimensional table, double-click a two-dimensional table in the Catalog, double-click the Open or Edit item in the Operation-list, or select the Edit Object command on the Edit menu of the Main window and select a two-dimensional table.

For more information on editing a two-dimensional table, see How to edit a table.

To apply a two-dimensional table:

A two-dimensional table can be applied by typing a special expression on the command line of the Main window:

OUTMAP = 2dimtablename[map1,map2]

For more information, see Map calculation : classifying two maps according to a two-dimensional table.

Technical information:

A two-dimensional table consists of an ASCII object definition file (.TA2) and a binary data file (.T2#). The object definition file contains further references to two domains that contain the classes or IDs that you want to reclassify and to one domain which contains the classes, IDs or values after reclassification; these three domains are properties of a two-dimensional table (see also Appendices : relations between ILWIS objects).

Internally, a two-dimensional table uses system domain None; the table has only one table-owned column named Value which stores the output class names, IDs or values for each combination of input classes or IDs.

See also: