damast.domains.maritime.ais.labels

damast.domains.maritime.ais.labels#

Shared handling of the labels AIS sources use in place of a standard’s codes.

A source may report a coded field as text - ‘Tanker’ rather than 80, ‘Under way using engine’ rather than 0 - and every source spells it its own way. Reducing both the standard’s names and a source’s labels to one form lets them be compared without a table per source.

Functions

normalise_label(name)

Reduce a label or a standard's name to its comparable form.