annual_raw_medians: T_Dataset = annual_group_xr_time_series( cpm_medians['raw']['tasmax', '01'].tasmax, variable_name=VariableOptions.TASMAX, plot_path=None, time_stamp=None)annual_convert_linear_medians: T_Dataset = annual_group_xr_time_series( cpm_medians['linear']['tasmax', '01'].tasmax, variable_name=VariableOptions.TASMAX, plot_path=None, time_stamp=None)annual_convert_nearest_medians: T_Dataset = annual_group_xr_time_series( cpm_medians['nearest']['tasmax', '01'].tasmax, variable_name=VariableOptions.TASMAX, plot_path=None, time_stamp=None)annual_raw_medians.plot(label='raw', linewidth=5)annual_convert_linear_medians.plot(label='convert', linewidth=3)annual_convert_nearest_medians.plot(label='nearest', linewidth=1)plot_axvlines(plt, gap_360_days(is_leap_year=False))plt.title("Medians of taxmax for each day of the year 1980-01-01 to 2080-11-30")plt.legend()plt.show()
For more detailed analysis comparing nearest and linear interpolation see: