Modifying slices of xarray dataset with non-contiguous indexing
I am trying to detrend some daily climate data that extends over 74 years and some spatial extent (longitude and latitude). I would like to detrend the 74 year time series for each day of the year individually so that I can have value of the detrended time series coincide with the non-detrended time series for each day of year and longitude/latitude location in the first year.