unifhy.TimeDomain.is_time_equal_to

TimeDomain.is_time_equal_to(field, ignore_bounds=True, _leading_truncation_idx=None, _trailing_truncation_idx=None)

Compare equality between the TimeDomain and the ‘time’ dimension coordinate in a cf.Field.

The time dimension, the bounds, the units, and the calendar of the field are compared against those of the TimeDomain.

Parameters
field: cf.Field

The field that needs to be compared against TimeDomain.

ignore_bounds: bool, optional

Option to ignore the time bounds in the comparison. If not provided, set to default value True (i.e. bounds are ignored in the comparison).

Returns

bool