xarray.DataArray.dt.day_of_year#

DataArray.dt.day_of_year#

The ordinal day of the year