get_meta_data

process_ais_data.get_meta_data(file_name)

Helper function to retrieve a given file name’s year, month, and zone.

Takes a string file_name formatted as 'AIS_yyyy_mm_Zone##.csv' and returns the numerical values of yyyy, mm, ## corresponding to year, month, and zone number as a tuple.

Parameters

file_name (str) – The file name to be parsed in format 'AIS_yyyy_mm_Zone##.csv'.

Returns

The year, month, and zone corresponding to the filename passed in.

Return type

tuple