#!/bin/bash
# Fetch the large data products not bundled in this zip (referee reproduction).
set -e
BASE="https://raw.githubusercontent.com/PantheonPlusSH0ES/DataRelease/main/Pantheon%2B_Data/4_DISTANCES_AND_COVAR"
echo "Downloading Pantheon+ STAT+SYS covariance (~33 MB)..."
curl -L -o PantheonPlusSH0ES_STATSYS.cov "$BASE/Pantheon%2BSH0ES_STAT%2BSYS.cov"
echo "Done. The plik-lite data (planck_2018_pliklite_native/) and Planck binned spectra (planck_data/)"
echo "are bundled. For the Planck lensing 8-bin bandpower likelihood install clik + cobaya:"
echo "  pip install cobaya && cobaya-install planck_2018_lensing.native -p <packages_path>"
