ocetrac.measures.get_initial_detection_time

ocetrac.measures.get_initial_detection_time(one_obj)

Gets the initial detection time from an xarray object.

Parameters

one_objxarray.DataArray or xarray.Dataset

The xarray object containing a ‘time’ coordinate.

Returns

t0

The initial detection time the same type as one_obj.time

Raises

ValueError

If the input dataset has an empty time coordinate.