frequencies
- frequencies(fs, bins[, area])
Counts the number of grid points whose values fall within a set of specified
bins
.- Parameters
fs (
Fieldset
) – input fieldsetbins (list) – bins used for the computations
area (list) – area as [North, West, South, East] used for the computations
- Return type
list or list of lists
bins
is a list with numbers in ascending order defining the bins. The first and last bins are unbounded. E.g. ifbins
= [0, 10, 20] the following bins are defined:first bin: (, 0)
second bin: [0, 10),
third bin: [10, 20),
fourth bin: [20, ),
Missing values in
fs
are not included in the results.If
fs
has just one field the result is a list of n+1 elements where n is the number of elements inbins
. Iffs
has more than one field the result is a list of lists, one for each field.Warning
Note that this function accumulates its results between fields in
fs
!