damast.domains.maritime.data_specification#

Module to define known constraints of the data and introduction of constants for column names and field values.

Classes#

MMSI

Class representing the MMSI data and corresponding (known) constraints

ColumnName

Collection of existing column names to provide a single point of definition.

FieldValue

Module Contents#

class damast.domains.maritime.data_specification.MMSI(mmsi: int)#

Class representing the MMSI data and corresponding (known) constraints

min_value: ClassVar[int] = 200000000#
max_value: ClassVar[int] = 799999999#
value#
property mid: int#
property country_iso_code: int#

Get the first three digits of the mmsi

Returns:

Country code

property national_id: int#

Get the national id (i.e. 6 last digits of the mmsi)

Returns:

National id

class damast.domains.maritime.data_specification.ColumnName#

Collection of existing column names to provide a single point of definition.

MMSI: str = 'MMSI'#
COURSE_OVER_GROUND: str = 'COG'#
SPEED_OVER_GROUND: str = 'SOG'#
LATITUDE: str = 'LAT'#
LONGITUDE: str = 'LON'#
TIMESTAMP: str = 'timestamp'#
VESSEL_TYPE: str = 'vessel_type'#
VESSEL_TYPE_GFW: str = 'vessel_class_gfw'#
STATUS: str = 'Status'#
MESSAGE_TYPE: str = 'MessageType'#
DATE_TIME_UTC: str = 'date_time_utc'#
SOURCE: str = 'source'#
DATA_MONTH: str = 'data_month'#
FISHING_TYPE: str = 'fishing_type'#
DISTANCE_CLOSEST_SATELLITE: str = 'distance_closest_satellite'#
DISTANCE_CLOSEST_ANCHORAGE: str = 'distance_closest_anchorages'#
HEADING: str = 'Heading'#
TRAJECTORIES: str = 'trajectories'#
COMBINATION: str = 'combination'#
HISTORIC_SIZE: str = 'HISTORIC_SIZE'#
HISTORIC_SIZE_REVERSE: str = 'HISTORIC_SIZE_REVERSE'#
DELTA_DISTANCE: str = 'DeltaDistance'#
LAST_POSITION: str = 'last_position'#
class damast.domains.maritime.data_specification.FieldValue#
VESSEL_TYPE_UNSPECIFIED: str = 'unspecified'#
UNDEFINED: int#