Utilities for working with catalogs (mostly Raygal lightcones) and perform basic cosmology computations such as distances, volumes, growth factor, growth rate, P(k)-xi etc...
- Catalog loading/filtering and filename metadata parsing
- Corrfunc pair-count filename decoding and retrieval
- Cosmology helpers (growth, volume, P(k) I/O)
- Filters and special functions
cosmo_utils.utils— I/O helpers (JSON, PK), path utilities, Corrfunc filename parsing, result writerscosmo_utils.cosmology— cosmology calculations (seecosmology.Cosmology)cosmo_utils.filters_et_functions— Special functions and useful filterscosmo_utils.catalogs— catalog retrieval, filtering, sampling, and small plotting helpers
Configuration files (JSON) are expected under:
Clone the repository and install in editable mode:
git clone Ferrangelo/cosmo_utils.git
cd cosmo_utilsUsing uv:
# From repository root
uv pip install -e .Using pip:
python -m pip install -e