The paper and the main code live in Alf Loeffler's repository: https://github.com/aloes2512/Ocean_Analysis.
This fork only holds supporting analyses that were written to test and extend that paper. Nothing here replaces
the paper's own code; the fork is kept in step with Alf's master, and the extra folders can be merged there if Alf wants them.
Alf's manuscript, Modelling Solar-Locked Natural Variability in Global Ocean SST Anomalies (1850–2026) (Ocean_Analysis.qmd),
asks whether the global sea surface temperature (ERSSTv6) can be split into
- a slow anthropogenic trend (a Richards/logistic growth curve), and
- natural oscillations tied to the sun (a spline with knots at the sunspot minima, filtered, then singular spectrum analysis and ESPRIT on the oscillating pairs).
This fork asks the next question: do the oscillations survive independent tests? The tests use different data (coral and reconstruction records, other regions), different methods (maximum-likelihood sinusoid fits with autocorrelated errors, surrogate-data significance, SSA, FFT) and a statistical null (red-noise surrogates). The work was done jointly with Claude (Anthropic) and is meant as a transparent second pair of eyes, not as a verdict.
| Folder | Question | R code does |
|---|---|---|
coral_test/ |
Is the ~20-yr line in global SST paced by an external clock (lunar nodal 18.6 yr, solar Hale cycle ~22 yr) or is it internal variability? A thermometer record of 176 yr cannot separate these; coral records of several centuries can. | Loads coral Sr/Ca and δ18O records (NOAA NCEI Paleoclimatology), fits the ~20-yr line in sliding windows and checks whether period and phase stay fixed. Figures: spectra, wavelet, sliding period/phase. |
regional_test/ |
Does a regional analysis (Mediterranean and others, where sun angle and noise differ) confirm or weaken the global findings? | Screens 12 candidate regions by criteria fixed beforehand, then runs Alf's methods (ML sinusoid scan with AIC, SSA, FFT with 4 components, spline-at-solar-minima chain, sunspot regression, proxy check) for three regions: Mediterranean, Gulf of Mexico, western Pacific warm pool. |
thermostat_test/ |
Is there a warm-water ceiling ("tropical thermostat") in tropical SST? Six-step plan; steps 0-1 done. | Per-cell ERSSTv6 test with pre-registered decision rule: warming rate against starting SST, upper-tail quantiles, area above 27-30 C. |
Each folder has its own README.md (what was done, how to re-run) and a results file with all numbers
(coral_test/manuscript_section.md, regional_test/RESULTS.md).
regional_test/R/alf_tools.R: reusable functions:sin_scan(ML sinusoid fit over periods 4–150 yr),null_scanandnull_scan_pl(AR(1) and power-law surrogates for the significance of the best period),ssa_periods,fft_top,knot_chain,solar_lag_fit.regional_test/R/regional_lib.R: region boxes, ERSSTv6 loading, area-weighted regional anomalies against the 1991–2020 climatology, top-of-atmosphere insolation.regional_test/10_…13_*.R: screening, proxy export, the per-region analysis (Rscript 12_regional_analysis.R MED), and the check of the ~80-yr line against an Atlantic multidecadal index.coral_test/A2_*.R: loading (A2_load), library (A2_lib), run (A2_run) and post-processing (A2_post) of the coral experiment.scripts/andmethods_archive/are Alf's original scripts and are not modified here.
- A line of 74–80 yr (0.2–0.3 K) is found by the maximum-likelihood fit in the Mediterranean and the Gulf of Mexico, not in the warm pool; SSA of the annual series finds the same line.
- The spline-at-solar-minima-minus-LOESS curve is effectively a band-pass filter (gain 0.01 at 85 yr, about 0.5 at 22–24 yr), so the ~85-yr cycle cannot appear in it, and 22–24 yr periods also appear for random knots.
- No region shows a significant regression on the sunspot number; the 80-yr line coincides with an Atlantic multidecadal index, and one coral record does not confirm it.
- Limits: ERSSTv6 is statistically filled before about 1900, the noise model at 60–100 yr is uncertain, and the Mediterranean and Gulf of Mexico are not independent.
R 4.x with terra, ncdf4, Rssa. ERSSTv6 (86 MB) is downloaded by regional_test/00_download_ersst.R; small proxy files are included.
Scripts use relative paths and are run from inside their folder.
NOAA PSL ERSSTv6 · SILSO sunspot number V2.0 · NOAA NCEI Paleoclimatology coral and reconstruction records
(sites listed in regional_test/data/proxy_sites.csv).
Siegfried Loeffler (fork owner) and Alf Loeffler (paper author, aloes2512/Ocean_Analysis).