https://github.com/cosmoglobe/cosmoglobe

The Cosmoglobe Sky model. A Python package for producing astrophysical sky simulations directly from Commander results.

https://github.com/cosmoglobe/cosmoglobe

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    2 of 8 committers (25.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.3%) to scientific vocabulary

Keywords

cmb cosmology python simulation
Last synced: 6 months ago · JSON representation

Repository

The Cosmoglobe Sky model. A Python package for producing astrophysical sky simulations directly from Commander results.

Basic Info
Statistics
  • Stars: 6
  • Watchers: 7
  • Forks: 3
  • Open Issues: 8
  • Releases: 5
Topics
cmb cosmology python simulation
Created about 5 years ago · Last pushed 10 months ago
Metadata Files
Readme License

README.md

Documentation Status astropy


cosmoglobe is a python package that interfaces the Cosmoglobe Sky Model with Commander outputs for the purpose of producing astrophysical sky maps.

Features

See the documentation for a more comprehensive guide.

Initialize the Cosmoglobe Sky Model (this downloads and caches a ~800 MB file with the sky model data) ```python import cosmoglobe

model = cosmoglobe.sky_model(nside=256) ```

Simulate the sky at 150 GHz in units of MJy/sr, smoothed to 40 arcmin with a gaussian beam: ```python import astropy.units as u

emission = model(150u.GHz, fwhm=40u.arcmin, output_unit="MJy/sr") ```

Integrate over a bandpass: ```python import numpy as np import healpy as hp import matplotlib.pyplot as plt

Reading in WMAP K-band bandpass profile.

bandpassfrequencies, bandpassweights = np.loadtxt(wmap_bandpass.txt, unpack=True)

The units of the detector must be specified even if the bandpass is pre-normalized.

bandpassweights *= u.Unit("KRJ") # Specify KRJ or KCMB bandpass_frequencies *= u.GHz

model.removedipole() # Remove the dipole from the CMB component emission = model( freqs=bandpassfrequencies, weights=bandpassweights, fwhm=0.8*u.deg, outputunit="mK_RJ", )

hp.mollview(emission[0], hist="norm") # Plotting the intensity plt.show() ```

Installation

cosmoglobe can be installed via pip bash pip install cosmoglobe

Funding

This work has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreements No 776282 (COMPET-4; BeyondPlanck), 772253 (ERC; bits2cosmology) and 819478 (ERC; Cosmoglobe).

License

GNU GPLv3

Owner

  • Name: Cosmoglobe
  • Login: Cosmoglobe
  • Kind: organization

GitHub Events

Total
  • Issues event: 5
  • Watch event: 1
  • Issue comment event: 1
  • Member event: 1
  • Push event: 4
  • Pull request event: 1
  • Create event: 2
Last Year
  • Issues event: 5
  • Watch event: 1
  • Issue comment event: 1
  • Member event: 1
  • Push event: 4
  • Pull request event: 1
  • Create event: 2

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 570
  • Total Committers: 8
  • Avg Commits per committer: 71.25
  • Development Distribution Score (DDS): 0.451
Top Committers
Name Email Commits
Metin San m****n@g****m 313
trygvels t****m@g****m 188
Duncan d****s@g****m 40
Trygve Leithe Svalheim t****s@a****o 8
Trygve Leithe Svalheim s****m@o****l 8
Trygve Leithe Svalheim s****m@o****e 7
“trygvels” “****m@g****” 4
maksym.brilenkov m****v@a****o 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 11
  • Total pull requests: 8
  • Average time to close issues: almost 2 years
  • Average time to close pull requests: 8 minutes
  • Total issue authors: 5
  • Total pull request authors: 5
  • Average comments per issue: 0.64
  • Average comments per pull request: 0.13
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.5
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • dncnwtts (4)
  • hermda02 (3)
  • unfunfunt (2)
  • tcassanelli (1)
Pull Request Authors
  • trygvels (3)
  • hermda02 (2)
  • maksymbrl (1)
  • MetinSa (1)
  • dncnwtts (1)
Top Labels
Issue Labels
plotting (7) enhancement (2) bug (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 133 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 58
  • Total maintainers: 3
pypi.org: cosmoglobe

A Python package for interfacing the Cosmoglobe Sky Model with commander3 outputs for the purpose of producing astrophysical sky maps.

  • Versions: 58
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 133 Last month
Rankings
Dependent packages count: 10.1%
Downloads: 15.1%
Average: 18.2%
Forks count: 19.1%
Dependent repos count: 21.6%
Stargazers count: 25.0%
Maintainers (3)
Last synced: 6 months ago

Dependencies

docs/requirements.txt pypi
  • jinja2 <3.1.0
  • nbsphinx ==0.8.8
  • pydata-sphinx-theme ==0.7.2
  • sphinx ==4.4.0
  • sphinx-autodoc-typehints ==1.17.0
poetry.lock pypi
  • 105 dependencies
pyproject.toml pypi
  • Jinja2 ^3.1.0 develop
  • Sphinx ^4.3.0 develop
  • ipykernel ^6.15.1 develop
  • ipython ^7.31.1 develop
  • mypy ^0.931 develop
  • nbsphinx ^0.8.7 develop
  • pydata-sphinx-theme ^0.7.2 develop
  • pytest ^7.0.1 develop
  • sphinx-autodoc-typehints ^1.17.0 develop
  • astropy >=5.0.1
  • click ^8.0.1
  • cmasher ^1.6.3
  • h5py >=3.0.0
  • healpy ^1.15.2
  • numba ^0.55.1
  • numpy >=1.18, <=1.23
  • python >=3.8
  • rich ^10.14.0
  • scipy ^1.9
  • setuptools <60.0
  • tqdm ^4.62.3
docs/environment.yml conda
  • astropy
  • cmasher
  • h5py >=3.0
  • healpy
  • ipython
  • matplotlib
  • nbsphinx
  • numba
  • numpy
  • numpydoc
  • pandoc
  • pip
  • pydata-sphinx-theme
  • python 3.8.*
  • scipy
  • tqdm