I have an xarray DataArray that I want to select the months April, May, June (similar to time.season=='JJA') for an entire time series.
Its structured like:
<xarray.DataArray 't2m' (time: 492, latitude: 81, longitude: 141)>
I have been previously selecting JJA by:
seasonal_data =temp_data.sel(time=temp_data['time.season']=='JJA')
I would like to do the same thing but with the months 'AMJ' instead. I can add any details that I might be missing.
Thanks