xarray.DataArray.dt.isocalendar

DataArray.dt.isocalendar()

Dataset containing ISO year, week number, and weekday.

Note

The iso year and weekday differ from the nominal year and weekday.