check_unit#

static geetools.DateAccessor.check_unit(unit)#

Check if the provided value is a valid time unit.

Parameters:

unit (str) – The unit to check.

Raises:

ValueError – If the unit is not valid.

Return type:

None