The Python programs listed in the Appendices have been placed in folders, tested and compressed for download as a .tar file. To run them you must have Python installed along with a couple of extra stats packages such as statsmodels. It’s easy with a good Linux version such as Mint. The user can experiment by editing various parameter values.
Folder ARMA contains the python program arma.py and data file HadCRUT.126.96.36.199.annual_ns_avg.txt. It also contains sub-folders: periodogram, resid, spectrum and stats to hold the output data. The command is python arma.py p q where (p,q) is the order of the autoregressive moving average process being fitted to the data. A single test run has already occurred with python arma.py 2 2 and its output summarized in the first line of Summary. You can vary parameters, p and q, until you find the best outcome as indicated by the Ljung-Box test of the residuals displayed by the graph in resid. This is all you need to perform ARMA Spectral Analysis of any time series – just modify the input function in arma.py accordingly. Be warned that it does not always converge to give a non-significant Ljung-Box.
Folder OrbitalParameters contains OPlist.py and OPspectra.py as main programs, function module DailyInsolation.py and data files orbital_parameter_data.mat and DomeCdeuterium.txt. Run OPlist.py first to generate the list OP491 then run OPspectra.py to generate graphs of the time series and spectra.
Folder NextIceAge reproduces Figure 11.4 of the book which shows how ice core temperatures related to annual absorbed water surface absorption following the last five Terminations. Run wsaList.py first to generate WSA47065541, then run next2.py to create the diagram.
Folder Mandala was included for fun. It is a shell executable. Just click on mandala.py and it fills your screen with a sequence of random patterns. The probability of getting two sequences the same is vanishingly small (i.e. zero). This is “stochastic art”. It runs forever and can be quite hypnotic. Press the Esc key to end the program.
These ready-to-run programs in their folders can be downloaded here: software.tar .