
README —  Table 2 


This directory contains the scripts needed to reproduce Table 2 of the
manuscript, which reports the Odds Ratio (OR) of the SALLJ–extreme precipitation
link under different methodological configurations (sensitivity analysis).

Scripts must be run in the order described below. Each one produces an
intermediate CSV file that serves as input for the next step.




EXECUTION ORDER
---------------

STEP 1 — Generate precipitation series for the expanded SESA domain

    Script : create_PP90_SESA_expanded.py
    
    Input  : IMERG daily NetCDF files (IMERG Final Run V07B, one file per day)
             Expected path: /mnt/disco/win/IMERG/DAILY/FINAL/*.nc
             
    Output : PP_series_SESA_expanded_DJF.csv
    

STEP 2 — Generate the P90 SALLJ event series (independent events)

    Script : create_SALLJ_series_P90_INDEP.py
    
    Input  : SALLJ_series_DJF.csv  (full DJF daily SALLJ index, all days)
    
    Output : SALLJ_series_DJF_P90_MAG_INDEP.csv


STEP 3 — Compute the Odds Ratio for each configuration and produce Table 2

    Script : table2_sensitivity.py
    
    Input  : SALLJ_series_DJF_INDEP.csv        (independent SALLJ events, baseline)
             SALLJ_series_DJF.csv             (all SALLJ days, no independence filter)
             PP_series_SESADJF.csv            (precipitation, standard SESA domain)
             PP_series_SESA_expanded_DJF.csv    (precipitation, expanded SESA domain)
             SALLJ_series_DJF_P90_MAG_INDEP.csv  (P90 SALLJ events, independent)
    
    Output : Table2.csv  (Table 2 of the manuscript)
    
             Also printed to screen for quick verification.


DESCRIPTION OF CONFIGURATIONS (rows of Table 2)
------------------------------------------------
    Baseline        Standard methodology (N = 103 independent SALLJ events)
    All days        No temporal independence filter applied (N = 156 SALLJ days)
    P90             Stricter jet threshold: 90th percentile of v850 (N = 26)
    Expanded SESA   Precipitation domain extended to 25–35°S, 55–65°W