by Lisa Goh and Sacha Guerrini, CEA Paris-Saclay
This folder contains the files neccessary to run the cosmological inference pipeline on the UNIONS galaxy catalogues.
To run the pipeline, one would need to have installed CosmoSIS and CosmoCov. To PSF leakage parameters, the fork of cosmosis-standard-library of Sacha Guerrini has to be used.
The inference pipeline is now orchestrated through Python. Run the main Snakemake workflow from the parent directory:
snakemake -j<jobs> inference_fiducialThis will automatically execute all steps:
- Calculate 2PCF (
$\xi_{pm}$ ) viacosmo_val.py - Compute covariance matrices using CosmoCov
- Prepare CosmoSIS data (FITS) via
cosmosis_fitting.py - Run CosmoSIS inference
For standalone FITS data preparation (real-space inputs plus optional pseudo-$C_\ell$ data), you can also use the Python script directly:
python scripts/cosmosis_fitting.py \
--cosmosis-root "catalog_version_config" \
--data-dir "/path/to/output/chains" \
--nz-file "/path/to/nz_file.txt" \
--out-file "/path/to/output.fits" \
--xi "/path/to/xi_plus.fits" "/path/to/xi_minus.fits" \
--cov-xi "/path/to/covariance.txt" \
--use-rho-tau \
--rho-stats "/path/to/rho_stats.fits" \
--tau-stats "/path/to/tau_stats.fits" \
--cov-tau "/path/to/cov_tau.npy" \
--cl-file "/path/to/pseudo_cl.fits" \
--cov-cl "/path/to/pseudo_cl_cov.fits"You can view all available options with:
python scripts/cosmosis_fitting.py --helpEnsure the pseudo-$C_\ell$ spectra (pseudo_cl_*.fits) and their covariance (pseudo_cl_cov_*.fits) produced by cosmo_val.py exist for the requested catalog version (or mock seed) before running the standalone command.
This is the pipeline used to derive cosmological constraints with cosmic shear data from the UNIONS v1.4 catalogue.