Distribution charts are often useful in data analysis. Field-Map provides with the functionality for such purpose:
Data come from project layer or table (e.g. query result).
NullAsZero parameter specifies whether missing values are assumed to be zero or skipped from the calculations.
ClassDef parameter specifies classes of a distribution. It can be represented by a single value which represents width of the class. In this case all classes are of the same width. The other option is specification of the range of class boundaries, e.g. VarArrayOf([5,10,20,30,40,50]).
Parameter OPTIONS can be used for various adjustments of distribution or chart:
Option |
Description |
Values |
Default |
BOUNDS |
left or right closed intervals used for classification |
LEFTSIDE or RIGHTSIDE LEFTSIDE = TRUNC( (X) / (ClassWidth) )+1 i.e. <5,10),<10,20),.. RIGHTSIDE = trunc( (X-1) / (ClassWidth) )+1 i.e. (5,10>,(10,20>,.. |
RIGHTSIDE |
FULLRANGE |
show full range of classes specified by class boundaries or optimize range of classes for particular data |
YES or NO |
NO |
Multiple options can be passed to the function, individual options are separated by semicolon.
example:
BOUNDS=LEFTSIDE;FULLRANGE=NO
In the example project there are several sample plots with diameter at breast height for all trees. The aim is to present diameter distribution in user defined classes for all trees together and for individual tree species.
The script and the example is working from Field-Map X6.0.7444 or newer!
Download scripting example 006 (Field-Map Project)
You must be logged in to post a comment