ctdproc.helpers.datetime2mtlb

ctdproc.helpers.datetime2mtlb(dt)[source]

Convert a numpy datetime64 array to MATLAB datenum.

Parameters:

dt (array-like of numpy.datetime64) – Input timestamps.

Returns:

MATLAB datenum values (days since the MATLAB epoch).

Return type:

numpy.ndarray of float