clouddrift.adapters.gdp.decode_date

Contents

clouddrift.adapters.gdp.decode_date#

clouddrift.adapters.gdp.decode_date(t)[source]#

The date format is specified as ‘seconds since 1970-01-01 00:00:00’ but the missing values are stored as -1e+34 which is not supported by the default parsing mechanism in xarray.

This function returns replaced the missing value by NaN and returns a datetime instance.

Parameters#

tarray

Array of time values

Returns#

outdatetime

Datetime instance with the missing value replaced by NaN