{"id":24527413,"url":"https://github.com/syasini/cosmoboost","last_synced_at":"2025-07-08T11:36:08.980Z","repository":{"id":62564933,"uuid":"201807898","full_name":"syasini/CosmoBoost","owner":"syasini","description":"A pure python package for Lorentz boosting the cosmos!","archived":false,"fork":false,"pushed_at":"2020-09-25T00:01:52.000Z","size":4321,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-05T02:56:37.011Z","etag":null,"topics":["aberration","cmb","cosmic-microwave-background","doppler","spherical-harmonics"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syasini.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}},"created_at":"2019-08-11T19:42:22.000Z","updated_at":"2020-09-25T00:01:55.000Z","dependencies_parsed_at":"2022-11-03T16:00:43.205Z","dependency_job_id":null,"html_url":"https://github.com/syasini/CosmoBoost","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/syasini/CosmoBoost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syasini%2FCosmoBoost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syasini%2FCosmoBoost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syasini%2FCosmoBoost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syasini%2FCosmoBoost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syasini","download_url":"https://codeload.github.com/syasini/CosmoBoost/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syasini%2FCosmoBoost/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264260482,"owners_count":23581012,"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":["aberration","cmb","cosmic-microwave-background","doppler","spherical-harmonics"],"created_at":"2025-01-22T06:18:24.142Z","updated_at":"2025-07-08T11:36:08.902Z","avatar_url":"https://github.com/syasini.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CosmoBoost\n\n[![author](https://img.shields.io/badge/author-syasini-red)](https://github.com/syasini)\n[![MIT license](http://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)\n[![stable](https://img.shields.io/badge/stable-v1.1-green)](https://github.com/syasini/CosmoBoost)\n[![DOI](https://zenodo.org/badge/201807898.svg)](https://zenodo.org/badge/latestdoi/201807898)\n\n[![email](https://img.shields.io/badge/email-yasini%40usc.edu-lightgrey)](mailto:yasini@usc.edu)\n\n\n\nCosmoBoost is a python package for Lorentz boosting anisotropic temperature and polarization maps in healpix format. The calculations are done in spherical harmonic space based on the *relativistic Doppler and aberration kernel formalism* developed in [Yasini \u0026 Pierpaoli (2017)](https://journals.aps.org/prd/abstract/10.1103/PhysRevD.96.103502) and [Dai \u0026 Chluba (2014)](https://journals.aps.org/prd/abstract/10.1103/PhysRevD.89.123504), following up on the original idea by [Challinor \u0026 van Leeuwen (2002)](https://journals.aps.org/prd/abstract/10.1103/PhysRevD.65.103001).\n\n\nCurrently the supported radiation types are:\n\n- Cosmic Microwave Background (CMB)\n- Kinetic Sunyaev Zeldovich (kSZ)\n- Thermal Sunyaev Zeldovich (tSZ)\n\nSee the `tutorial.ipynb` notebook for an overview of the features through a set of examples.  \n\n# Dependencies\n\n- python 3 [![stable](https://img.shields.io/badge/tested%20on-v3.6-brightgreen)](https://www.python.org/downloads/release/python-360/)\n- numpy [![stable](https://img.shields.io/badge/tested%20on-v1.16.4-brightgreen)](https://pypi.org/project/numpy/1.16.4/)\n- scipy [![stable](https://img.shields.io/badge/tested%20on-v1.2.1-brightgreen)](https://pypi.org/project/scipy/1.2.1/)\n- healpy[![stable](https://img.shields.io/badge/tested%20on-v1.12.9-brightgreen)](https://pypi.org/project/healpy/)(needed for running the tutorial)\n\n# Installation\n\nYou can install CosmoBoost from pypi using \n\n`pip install cosmoboost`\n\nAlternatively, you can clone the repository by running \n\n`git clone https://github.com/syasini/CosmoBoost.git` \n\nthen move to the CosmoBoost directory \n\n` cd CosmoBoost` \n\nand run \n\n`python setup.py install --user` \n\nor use pip\n\n`pip install [-e] .`\n\nthe `-e` argument will install the package in editable mode which is suitable for developement. If you want to modify the code use this option. \n\n\n# Example Session\n\nCosmoBoost has a simple and user friendly interface. Simply import the package using\n\n`import cosmoboost as cb`\n\nThen load the default boosting parameters dictionary (`beta = 0.00123`, `d=1`, `s=0`, `lmax= 1000`, etc.)\n\n`pars = cb.DEFAULT_PARS`\n\nInstantiate the kernel object\n\n`kernel = cb.Kernel(pars)`\n\nNow simply boost a set of alm's (recommended) using\n\n`alm_boosted = cb.boost_alm(alm_rest, kernel)`\n\nor boost the power spectrum Cl directly\n\n`Cl_boosted = cb.boost_Cl(Cl_rest, kernel)`\n\nSee the tutorial for a comprehensive example. \n\n# Acknowledgement\n\nIf you find the contents of this repository useful for your research, please consider citing the following papers:\n ```\n  @article{Yasini:2017jqg,\n      author         = \"Yasini, Siavash and Pierpaoli, Elena\",\n      title          = \"{Generalized Doppler and aberration kernel for\n                        frequency-dependent cosmological observables}\",\n      journal        = \"Phys. Rev.\",\n      volume         = \"D96\",\n      year           = \"2017\",\n      number         = \"10\",\n      pages          = \"103502\",\n      doi            = \"10.1103/PhysRevD.96.103502\",\n      eprint         = \"1709.08298\",\n      archivePrefix  = \"arXiv\",\n      primaryClass   = \"astro-ph.CO\",\n      SLACcitation   = \"%%CITATION = ARXIV:1709.08298;%%\"\n  }\n```\n\n```\n@article{Dai:2014swa,\n      author         = \"Dai, Liang and Chluba, Jens\",\n      title          = \"{New operator approach to the CMB aberration kernels in\n                        harmonic space}\",\n      journal        = \"Phys. Rev.\",\n      volume         = \"D89\",\n      year           = \"2014\",\n      number         = \"12\",\n      pages          = \"123504\",\n      doi            = \"10.1103/PhysRevD.89.123504\",\n      eprint         = \"1403.6117\",\n      archivePrefix  = \"arXiv\",\n      primaryClass   = \"astro-ph.CO\",\n      SLACcitation   = \"%%CITATION = ARXIV:1403.6117;%%\"\n}\n```\nThe bibtex entries are copied from `inspirehep.net`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyasini%2Fcosmoboost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyasini%2Fcosmoboost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyasini%2Fcosmoboost/lists"}