I have data that is on a monthly timeseries, and I want to resample it in a specific way such that I have two seasonal groups - 5 months (DJFMA) and 7 months (MJJASON) and find the maximum value for each gridpoint from each group. Here is what I have, but obviously it does not do what I want: my_data.resample(time='2QS-NOV').max(dim='time') Thank you! Continue reading...