https://github.com/astro-informatics/darkmappy
Scalable mapping of the dark universe
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
-
○.zenodo.json file
-
✓DOI references
Found 5 DOI reference(s) in README -
✓Academic publication links
Links to: arxiv.org, ieee.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.8%) to scientific vocabulary
Keywords
bayesian
dark-matter
harmonic-analysis
inverse-problems
signal-processing
Last synced: 5 months ago
·
JSON representation
Repository
Scalable mapping of the dark universe
Basic Info
- Host: GitHub
- Owner: astro-informatics
- License: gpl-3.0
- Language: Python
- Default Branch: main
- Homepage: https://astro-informatics.github.io/DarkMappy/
- Size: 24.1 MB
Statistics
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 2
- Releases: 0
Topics
bayesian
dark-matter
harmonic-analysis
inverse-problems
signal-processing
Created about 4 years ago
· Last pushed almost 4 years ago
Metadata Files
Readme
License
README.rst
.. image:: https://img.shields.io/badge/GitHub-DarkMappy-brightgreen.svg?style=flat
:target: https://github.com/astro-informatics/DarkMappy
.. image:: https://github.com/astro-informatics/DarkMappy/actions/workflows/python.yml/badge.svg?branch=main
:target: https://github.com/astro-informatics/DarkMappy/actions/workflows/python.yml
.. image:: https://readthedocs.org/projects/ansicolortags/badge/?version=latest
:target: https://astro-informatics.github.io/DarkMappy
.. image:: https://codecov.io/gh/astro-informatics/DarkMappy/branch/main/graph/badge.svg?token=A5ogGPslpU
:target: https://codecov.io/gh/astro-informatics/DarkMappy
.. image:: https://img.shields.io/badge/License-GPL-blue.svg
:target: http://perso.crans.org/besson/LICENSE.html
.. image:: http://img.shields.io/badge/arXiv-2004.07855-orange.svg?style=flat
:target: https://arxiv.org/abs/2004.07855
.. image:: http://img.shields.io/badge/arXiv-1812.04014-orange.svg?style=flat
:target: https://arxiv.org/abs/1812.04014
|logo| DarkMappy: mapping the dark universe
=================================================================================================================
.. |logo| raw:: html
``darkmappy`` is a lightweight python package which implements the hybrid Bayesian dark-matter reconstruction techniques
outlined on the plane in `Price et al. 2019 `_, and on the celestial sphere in `Price et al. 2021 `_. For comparison (and as initilaisiation for our iterations) the spherical Kaiser-Squires estimator of the convergence is implemented (see `Wallis et al. 2021 `_). These techniques are based on *maximum a posteriori* estimation which, by construction, support principled uncertainty quantification, see `Pereyra 2016 `_. Further examples of such uncertainty quantification techniques developed for the weak lensing setting can be found in related articles `Price et al. 2019a `_ and `Price et al. 2019b `_.
INSTALLATION
============
``darkmappy`` can be installed through PyPi by running
.. code-block:: bash
pip install darkmappy
or alternatively from source by running the following
.. code-block:: bash
git clone https://github.com/astro-informatics/DarkMappy.git
cd DarkMappy
bash build_darkmappy.sh
following which the test suite can be executed by running
.. code-block:: bash
pytest --black darkmappy/tests
BASIC USAGE
===========
For planar reconstructions across the flat-sky the estimator can be run by the following, note that images must be square.
.. code-block:: python
import numpy as np
import darkmappy.estimators as dm
# LOAD YOUR DATA
data = np.load()
ngal = np.load()
mask = np.load()
# BUILD THE ESTIMATOR
dm_estimator = dm.DarkMappyPlane(
n = n, # Dimension of image
data = data, # Observed shear field
mask = mask, # Observational mask
ngal = ngal, # Map of number density of observations per pixel
wav = [], # see https://tinyurl.com/mrxeat3t
levels = level, # Wavelet levels
supersample = supersample) # Super-resolution factor (typically <~2)
# RUN THE ESTIMATOR
convergence, diagnostics = dm_estimator.run_estimator()
For spherical reconstructions across the full-sky the estimator can be run by the following, note images must be of dimension L by 2L-1, see `McEwen & Wiaux 2011 `_.
.. code-block:: python
import numpy as np
import darkmappy.estimators as dm
# LOAD YOUR DATA
data = np.load()
ngal = np.load()
mask = np.load()
# BUILD THE ESTIMATOR
dm_estimator = dm.DarkMapperSphere(
L = L, # Angular Bandlimit
N = N, # Azimuthal Bandlimit (wavelet directionality)
data = data, # Observational shear data
mask = mask, # Observation mask
ngal = ngal) # Map of number density of observations per pixel
# RUN THE ESTIMATOR
convergence, diagnostics = dm_estimator.run_estimator()
CONTRIBUTORS
============
`Matthew A. Price `_, `Jason D. McEwen `_ & Contributors
ATTRIBUTION
===========
A BibTeX entry for ``darkmappy`` is:
.. code-block::
@article{price:2021:spherical,
title = {Sparse Bayesian mass-mapping with uncertainties: Full sky observations on the celestial sphere},
author = {M.~A.~Price and J.~D.~McEwen and L.~Pratley and T.~D.~Kitching},
journal = {Monthly Notices of the Royal Astronomical Society},
year = 2021,
month = jan,
volume = {500},
number = {4},
pages = {5436-5452},
doi = {10.1093/mnras/staa3563},
publisher = {Oxford University Press}
}
.. code-block::
@article{price:2021:hypothesis,
title = {Sparse Bayesian mass mapping with uncertainties: hypothesis testing of structure},
author = {M.~A.~Price and J.~D.~McEwen and X.~Cai and T.~D.~Kitching and C.~G.~R.~Wallis and {LSST Dark Energy Science Collaboration}},
journal = {Monthly Notices of the Royal Astronomical Society},
year = 2021,
month = jul,
volume = {506},
number = {3},
pages = {3678--3690},
doi = {10.1093/mnras/stab1983},
publisher = {Oxford University Press}
}
If, at any point, the direction inverse functionality (i.e. spherical Kaiser-Squires) please cite
.. code-block::
@article{wallis:2021:massmappy,
title = {Mapping dark matter on the celestial sphere with weak gravitational lensing},
author = {C.~G.~R.~Wallis and M.~A.~Price and J.~D.~McEwen and T.~D.~Kitching and B.~Leistedt and A.~Plouviez},
journal = {Monthly Notices of the Royal Astronomical Society},
year = 2021,
month = Nov,
volume = {509},
number = {3},
pages = {4480-4497},
doi = {10.1093/mnras/stab3235},
publisher = {Oxford University Press}
}
Finally, if uncertainty quantification techniques which rely on the approximate level-set threshold (derived by `Pereyra 2016 `_) are performed please consider citing relating articles appropriately.
LICENSE
=======
``darkmappy`` is released under the GPL-3 license (see `LICENSE.txt `_).
.. code-block::
DarkMappy
Copyright (C) 2022 Matthew A. Price, Jason D. McEwen & contributors
This program is released under the GPL-3 license (see LICENSE.txt).
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Owner
- Name: AstroInfo Team @ UCL
- Login: astro-informatics
- Kind: organization
- Location: United Kingdom
- Website: http://www.jasonmcewen.org/
- Repositories: 29
- Profile: https://github.com/astro-informatics
GitHub Events
Total
Last Year
Committers
Last synced: almost 3 years ago
All Time
- Total Commits: 35
- Total Committers: 3
- Avg Commits per committer: 11.667
- Development Distribution Score (DDS): 0.171
Top Committers
| Name | Commits | |
|---|---|---|
| CosmoMatt | m****e@k****m | 29 |
| Matt Price | 3****t@u****m | 5 |
| Jason McEwen | j****n@g****m | 1 |
Committer Domains (Top 20 + Academic)
kagenova.com: 1
Packages
- Total packages: 1
-
Total downloads:
- pypi 10 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 1
- Total maintainers: 1
pypi.org: darkmappy
Scalable hybrid Bayesian dark-matter reconstruction algorithms
- Homepage: https://github.com/astro-informatics/DarkMappy
- Documentation: https://darkmappy.readthedocs.io/
- License: GNU General Public License v3 (GPLv3)
-
Latest release: 0.1.0
published almost 4 years ago
Rankings
Dependent packages count: 10.0%
Forks count: 19.2%
Dependent repos count: 21.8%
Stargazers count: 27.8%
Average: 30.9%
Downloads: 75.9%
Maintainers (1)
Last synced:
6 months ago
Dependencies
requirements/requirements-core.txt
pypi
- colorlog *
- numpy *
- optimusprimal *
- pys2let *
- pyssht *
- pyyaml *
requirements/requirements-docs.txt
pypi
- nbsphinx-link ==1.3.0
- sphinx ==4.2.0
- sphinx-git ==11.0.0
- sphinx-rtd-dark-mode ==1.2.4
- sphinx-rtd-theme ==1.0.0
- sphinx-tabs ==3.2.0
- sphinx_toolbox ==2.15.0
- sphinxcontrib-bibtex ==2.4.1
- sphinxcontrib-texfigure ==0.1.3
requirements/requirements-examples.txt
pypi
- matplotlib *
requirements/requirements-tests.txt
pypi
- black * test
- codecov * test
- ipython ==7.16.1 test
- jupyter ==1.0.0 test
- pytest * test
- pytest-black * test
- pytest-cov * test