RULES_reproduce.txt -- reproduction of S0 News research note 010's band trends Registered 2026-11-15, before any band mean, trend or latitude profile was computed from the downloaded fields. Only file structure (dimensions, units, time span) had been inspected (inspect_nc.py). PURPOSE Rebuild, with our own code, the note's surface-pressure trends for latitude bands from the public monthly reanalysis files, using the definitions the note states in its Methods, and say which of its numbers reproduce. INPUTS (SHA-256 logged in analysis_log.md) - NCEP/NCAR R1: PSL Datasets/ncep.reanalysis.derived/surface/pres.mon.mean.nc (variable pres, millibars = hPa; 1948-01..2026-02; 73 x 144, 2.5 deg). - NCEP/NCAR R1: pr_wtr.eatm.mon.mean.nc (kg m-2; same grid and times). - 20CRv3: PSL Datasets/20thC_ReanV3/Monthlies/sfcMO/pres.sfc.mon.mean.nc (pres, Pa; 1806-01..2015-12; 181 x 360, 1 deg; version 3si, its first 30 years joined from PSL's "PREQUEL" run, per the file's history attribute). - JRA-55: JAMSTEC Reanalysis Intercomparison Dataset (RID), surface/common-grid/monthly/sp/JRA-55, 793 monthly files 1958-01..2024-01 (sp, Pa; 73 x 144 common 2.5 deg grid). Used only if all files download. METHOD (the note's stated definitions) 1. Convert to hPa (Pa / 100). R1 is already in hPa. 2. Zonal mean of each latitude row: arithmetic mean over all longitudes. Missing values are ignored and counted (none expected). 3. Area weight of a row: cos(latitude), set to exactly 0 at |lat| = 90. 4. Regions, by row centre: Arctic lat > 60; Antarctic lat < -60; combined polar |lat| > 60; tropical |lat| <= 23.5; global all rows. 5. Monthly regional mean = sum(w * zonal mean) / sum(w) over the region's rows. 6. Annual mean = mean of the 12 monthly means weighted by days in month (Gregorian, leap Februaries 29 days). Only calendar years with all 12 months; partial years are dropped (R1 2026, JRA-55 2024). No filling. 7. Trend = ordinary least-squares slope of the annual means on calendar year, reported in hPa per decade (slope x 10). 8. Interval and p value, primary method M1 (Santer et al. 2000, JGR 105, 7337-7356): residuals e_t of the fit; lag-1 autocorrelation r1 = sum_{t=1}^{n-1} e_t e_{t+1} / sum_t e_t^2; r = max(r1, 0) ("negative correlation never narrows the interval"); n_eff = n (1 - r) / (1 + r); s^2 = sum e^2 / (n_eff - 2); SE = s / sqrt(sum (t - tbar)^2); 95% interval = b +/- t(0.975, n_eff - 2) * SE; p = 2 * (1 - T(|b| / SE; n_eff - 2)). If n_eff <= 2 the interval is undefined and reported as such. 9. Matching attempts, only if M1 does not reproduce the note's intervals to its printed precision. Reported as attempts to identify the note's formula, never as a change of our primary method: M2 = M1 with the normal critical value 1.96; M3 = OLS standard error (n - 2 df) times sqrt((1 + r) / (1 - r)), with t on n - 2 df; M4 = M1 with t on n_eff degrees of freedom (not n_eff - 2); M5 = M1 with r1 computed with the denominator scaled by n/(n-1) (the "unbiased" autocovariance form). 10. Periods: full record = R1 1948-2025, JRA-55 1958-2023, 20CRv3 1806-2015; "1979+" = 1979 to the same end years; common = 1979-2015. Labelled sensitivity (not the note's): 20CRv3 1836-2015, the reanalysis's official span without the PREQUEL years. 11. Latitude profile (the note's Figure 2): the same trend, with M1 interval, for the annual zonal mean of every latitude row, full record and 1979+. Reported: the latitude of the most negative full-record trend south of 30 S for each product, and the trends at 60 S, 70 S and 90 S. 12. R1 mass budget (the note's Claims, paragraph 2): global mean (same weights) of annual pr_wtr times 0.0980665 hPa per kg m-2 = water-vapour pressure V; dry-air pressure D = total - V; trends 1979-2025 of total, V and D with M1 intervals. TOLERANCE A slope reproduces if it agrees with the note's value within one unit of the note's last printed digit (rounding). Each interval bound is judged the same way. Otherwise "differs", with the difference stated. OUTPUTS code/out/reproduce.json (every number), code/out/annual_bands_.csv (our derived annual band means), code/out/lat_profile_.csv.