{"id":16573917,"url":"https://github.com/julienpeloton/lenscov","last_synced_at":"2026-02-12T15:33:32.819Z","repository":{"id":70542616,"uuid":"75501160","full_name":"JulienPeloton/lenscov","owner":"JulienPeloton","description":"Full CMB and lensing covariances","archived":false,"fork":false,"pushed_at":"2019-03-08T06:35:34.000Z","size":1987,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-16T04:10:44.590Z","etag":null,"topics":["cmb","covariance","lensing"],"latest_commit_sha":null,"homepage":"","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JulienPeloton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-03T21:23:46.000Z","updated_at":"2024-12-07T02:00:11.000Z","dependencies_parsed_at":"2023-05-16T18:00:24.686Z","dependency_job_id":null,"html_url":"https://github.com/JulienPeloton/lenscov","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulienPeloton%2Flenscov","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulienPeloton%2Flenscov/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulienPeloton%2Flenscov/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulienPeloton%2Flenscov/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JulienPeloton","download_url":"https://codeload.github.com/JulienPeloton/lenscov/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242057698,"owners_count":20065060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmb","covariance","lensing"],"created_at":"2024-10-11T21:43:24.130Z","updated_at":"2026-02-12T15:33:27.798Z","avatar_url":"https://github.com/JulienPeloton.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"lenscov\n==\n\n![ScreenShot](https://github.com/JulienPeloton/lenscov/blob/master/additional_files/covariances_phixCMB_triangle_MV_CMB-S4.png)\n\n#### The package\nThis package contains scripts for computing CMB and lensing covariances\nas described in Peloton et al. 2016 (https://arxiv.org/abs/1611.01446)\nIt has routines for:\n* Spectra\n    * computing (analytically) the N0 bias (curve- and flat-sky available)\n    * computing (analytically) the N1 bias (only flat-sky available)\n    * computing CMB lensed power spectra using series-expansion\n    * computing CMB lensed power spectra using correlation functions\n* Covariances\n    * computing (analytically) the covariance matrix of\n      CMB lensed spectra up to second order in lensing potential power-spectrum\n    * computing (analytically) the covariance matrix of\n      lensing potential spectrum\n    * computing (analytically) the cross-covariance matrix of\n      CMB lensed spectra and lensing potential spectrum up to\n      second order in lensing potential power-spectrum\n* Additional\n    * computing derivatives of spectra using correlation functions\n    * computing wigner (small) d-matrix efficiently\n\nThe code performs computation in the full-sky formalism, except the computation of N1\nbiases and their derivatives (see the LensingBiases package).\nThe code is fully-parallelized using mpi4py,\nand some Fortran parts make use of openmp (computation of N1).\n\n### Before starting\nThis code has the following dependencies:\n* numpy, pylab, etc (required)\n* scipy (required, for C interfacing)\n* f2py (required, for Fortran interfacing)\n* mpi4py (optional, to use parallel computing)\n* LensingBiases (optional, to compute lensing biases)\n\nMake sure you update your PYTHONPATH to use the code.\nJust add in your bashrc:\n```bash\nCOVPATH=/path/to/the/package\nexport PYTHONPATH=$PYTHONPATH:$COVPATH:$COVPATH/src\n```\n\n### Compilation of C and Fortran\nThe code is primarily written in Python, although the low-level routines\n(wigner3-j, nested loops, etc) are implemented in Fortran and C,\nand interfaced with Python. The compilation of C is done on-the-fly\nthrough scipy.weave. The compilation of Fortran is done either using the\nsetup file, by running:\n```bash\npython setup.py build_ext --inplace --fcompiler=gfortran\n```\nDepending on system, you may need to specify a different fortran compiler.\nThe compilation has been tested successfully with gfortran (gcc version 5.1.0) and ifort.\nFor the purist, we also provide a Makefile for a direct compilation.\n\n### Usage\nYou can find a launcher (run_covariances.sh) to have a quick usage.\nWe also provide a batch file for usage on cluster.\nYou have pre-defined experimental configurations in misc.py.\n\n### License\nGNU License (see the LICENSE file for details) covers all files\nin the lenscov repository unless stated otherwise.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulienpeloton%2Flenscov","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulienpeloton%2Flenscov","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulienpeloton%2Flenscov/lists"}