dctools.processing.cmems_data.extract_dates_from_filename

dctools.processing.cmems_data.extract_dates_from_filename(filename)

Extract start and end dates from a CMEMS filename.

Parameters:

filename (str) – The name of the file.

Returns:

A tuple of (start_date, end_date) in ‘YYYY-MM-DD’ format,

or None if no dates are found.

Return type:

Optional[Tuple[str, str]]