#!/bin/sh
# From the published CSVs (no SVGs needed): run from the piece's top directory.
#   sh analysis/run_all.sh
# To start from the raw charts instead: sh analysis/fetch.sh, then python analysis/parse_f3.py and parse_f4.py
# (writes data/objective_probs_raw.csv and data/plume.csv), then this script.
# Needs python3 with numpy, pandas, scipy, matplotlib.
set -e; export ROOT=$(pwd) ENSO_OUTLOOKS=$(pwd)/run11 FIGDIR=$(pwd); PY=${PY:-python3}
for v in v5 v6 roni; do $PY analysis/pairs.py --oni $v; $PY analysis/postproc.py --oni $v > results/postproc_$v.log; $PY analysis/score.py --oni $v > results/score_$v.log 2>&1; done
$PY analysis/export.py; $PY analysis/figures.py; $PY analysis/sigma_check.py > results/sigma_check.log
