I am creating a time series from a gridded dataset in the NETCDF4 format using the instructions provided in this link: http://www.matteodefelice.name/post/aggregating-gridded-data/
However, at the very end, I get an error when trying to group the temperatures by time, using the code:
x = out_sel.groupby('time').mean()
The following error appears: "ValueError: cannot reduce over dimensions ['time']. expected either '...' to reduce over all dimensions or one or more of Frozen(SortedKeysDict({'latitude': 5, 'longitude': 8}))."
How can I solve this problem? Help will be highly appreciated!