xarray.DataArray.dt.is_leap_year

DataArray.dt.is_leap_year

Boolean indicator if the date belongs to a leap year.