Your description of the algorithm I implemented is correct. I only did it for the [Mauna Loa CO2 data](, not temperature, since you seemed to be focused on the green curve. There are some missing values. It could be done with the data sets RealClimate used too. I ran their script and it produced the relevant output without errors, so I'm not sure what's going on with the one missing data set.