ILWIS objects

 

Histograms    

 

 

A histogram is a dependent table which stores frequency information on values, classes or IDs in a raster, polygon, segment or point map. A raster histogram is automatically calculated when displaying a value raster map which is stored using one or two bytes per pixel. Further, the Histogram operation can be used to calculate a histogram. The values in a histogram are presented as a table. A histogram always has the same name as the map from which it is calculated.

   

A raster histogram lists, depending on the domain of the map, for each value, class name or ID, the number of pixels in the map, and for each value, class name or ID the size of the area of these pixels as a percentage of the total area in square meters. If the input raster map uses a Value domain, the cumulative number of pixels, the cumulative percentages of the areas and the percentage of pixels of the total area that are not undefined are also calculated.

Furthermore, summary information can be viewed in the properties of the histogram such as mean, predominant value, standard deviation, and percentage intervals.

A polygon histogram lists, depending on the domain of the map, for each value, class name or ID, the number of polygons, and the perimeter and the area in square meters of these polygons. If the input polygon map uses a Value domain, the cumulative number of polygons, cumulative perimeters and cumulative areas are also calculated.

Furthermore, summary information is available in the properties of the histogram.

A segment histogram lists, depending on the domain of the map, for each value, class name or ID, the number of segments and their length. If the input segment map uses a Value domain, the cumulative number of segments and the cumulative lengths are also calculated.

Furthermore, summary information is available in the properties of the histogram.

A point histogram lists, depending on the domain of the map, for each value, class name or ID, the number of points. If the input point map uses a Value domain, the cumulative number of points is also calculated.

Furthermore, summary information is available in the properties of the histogram.

Names of histograms:

A histogram always obtains the same name as the map from which it is calculated. For more information on long object names, see How to use long object names.

To calculate a histogram:

You can double-click the Histogram operation in the Operation-list and select the map from which you want to calculate a histogram. You can also click a map in the Catalog with the right mouse button and choose Statistics, Histogram from the context-sensitive menu. For other methods, see How to calculate a histogram.

Furthermore, a histogram is automatically calculated when you display a value raster map (domain Image, system domain Value, another system value domain or a user-defined value domain) which is stored using 1 or 2 bytes per pixel.

To display a histogram as a table and as a graph:

The easiest way to display a histogram is to double-click a histogram in a Catalog. The values of the histogram will be shown in the table pane of the histogram window; a graph of the histgram will be shown in the graph pane of the histgram window.

Editing a histogram:

As a histogram is a dependent table, depending on the values, class names, or IDs in a map, the values of the calculated (table-owned) columns in a histogram table cannot be edited. You can always perform further calculations using these columns by typing expressions on the TabCalc command line.

If you really want to manually edit the values of calculated table-owned columns, you first have to break the dependency link of the histogram table in its Properties dialog box.

Tip:

For histograms of domain Class or ID maps: as the domain of the histogram is the same as the domain of the map, all columns of the histogram can be joined to an attribute table of a map. See also How to join areas from a histogram to an attribute table.

Technical information:

A histogram consists of an ASCII object definition file (.HIS, .HSA, .HSS or .HSP) and a binary data file (.HI#, .HA#, .HS# or .HP#). The object definition file contains references to the map from which the histogram was calculated and the domain of that map. The domain of the map is is also the domain of the histogram.

By viewing the properties of a histogram, you can see whether the histogram is up-to-date. If this is not the case, i.e. after editing the map from which the histogram was calculated, you can easily recalculate the histogram by clicking the Make Up-to-Date button. The properties of a value histogram also present a histogram summary: the Mean, Standard Deviation, Median, Predominant value and the number of times this value occurs in the map. Furthermore, the values in the map which define the 0%, 0.5%, 1.0%, 2.0%, 5.0% and 10.0% percentage intervals in the histogram are listed.

Limitations:

The maximum number of entries in a histogram is 2 billion.

See also: