rcatool.stats.sal.L_stat

rcatool.stats.sal.L_stat(data, data_label, refdata, refdata_label)[source]

Function to determine the location component (L). It consists of two components, L1 and L2. L1: measures the normalized distance between the centers of mass of the modelled and observed fields. L2: The second considers the averaged distance between the center of mass of the total field and individual field objects.

Parameters:
  • data (arrays) – 2D data arrays to be compared, where refdata is the reference data e.g. observations.

  • refdata (arrays) – 2D data arrays to be compared, where refdata is the reference data e.g. observations.

  • data_label (arrays) – Arrays with labeled objects. Returned from the label() function.

  • refdata_label (arrays) – Arrays with labeled objects. Returned from the label() function.

Returns:

L1, L2, L – Dictionary with the calculated location components L1 and L2 as well as its composite L (L1 + L2).

Return type:

dictionary