CosmicProfiles

CosmicProfiles: A Python package for radial profiling of finitely sampled dark matter halos and galaxies - Published in JOSS (2023)

https://github.com/tibordome/cosmic_profiles

Science Score: 95.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
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: arxiv.org, joss.theoj.org, zenodo.org
  • Committers with academic emails
    1 of 2 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

astronomy cosmological-simulations point-cloud

Scientific Fields

Mathematics Computer Science - 84% confidence
Artificial Intelligence and Machine Learning Computer Science - 62% confidence
Last synced: 4 months ago · JSON representation

Repository

Implements 3D point cloud algorithms for estimation and fitting of shape and density profiles

Basic Info
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • Open Issues: 2
  • Releases: 4
Topics
astronomy cosmological-simulations point-cloud
Created almost 4 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README.rst

|Logo|

CosmicProfiles is a Cython package for Point Cloud Profiling

|Build Status| |Platforms| |Zenodo| |JOSS|

The CosmicProfiles project
****************************

This repository provides shape and density profile analysis tools for cosmological simulations (and beyond). Its features include

- overall halo shape determination, i.e. major, intermediate, minor axis vectors and shape quantities such as intermediate-to-major axis ratio or sphericity
- halo shape profile determination

  - iterative shell-based shape profile determination algorithm for high-resolution halos
  - iterative ellipsoid-based shape profile determination algorithm for lower-resolution halos
  - user can choose between reduced shape tensor and non-reduced shape tensor
- supports

  - 'direct' datasets (i.e. index catalogue provided by user) and
  - FoF / SUBFIND halo catalogues
  - Gadget-style I, II and HDF5 snapshot files
  
    - all functionalities available for dark matter halos, gas particle halos and star particle halos
    - in addition, allows for velocity dispersion tensor eigenaxes determination
- halo density profile estimation using direct binning and kernel-based approaches

  - user can choose between direct binning into spherical shells and
  - direct binning into ellipsoidal shells
- density profile fitting assuming either `NFW `_, `Hernquist 1990 `_, `Einasto `_ or `alpha-beta-gamma `_ profile model

  - concentration-mass relationship of halos easy to calculate
- mock halo generator: ellipsoidal or spherical, compatible with the 4 density profile models
- easy to interface with `pynbody` to work with halos identified in a cosmological simulation (see example scripts)
- easy to interface with `nbodykit` to harness large-scale structure capabilities (see example scripts)
- various profile plotting and 3D point cloud plotting tools
- efficient caching capabilities to accelerate look-ups

Documentation
****************************

|Documentation Status|

The documentation for CosmicProfiles is hosted on `Read the Docs
`__.

Installation and Dependencies
******************************

|PyPI| |Name| |Downloads| |Version|

The easiest way to get CosmicProfiles is to install it with conda using the conda-forge channel::

    conda install cosmic_profiles --channel conda-forge
    
Alternatively, you can use pip::

   pip install cosmic-profiles

See the `installation
instructions `_ in the
`documentation `__ for more information.

License
****************************

|License|

Copyright 2020-2023 Tibor Dome.

CosmicProfiles is free software made available under the MIT License.

Contributions are welcome. Please raise an issue or open a PR.


.. |PyPI| image:: https://badge.fury.io/py/cosmic_profiles.svg
   :target: https://badge.fury.io/py/cosmic_profiles
.. |Logo| image:: https://cosmic-profiles.readthedocs.io/en/latest/_images/CProfiles.png
   :target: https://github.com/tibordome/cosmic_profiles
   :width: 400
.. |Documentation Status| image:: https://readthedocs.org/projects/cosmic-profiles/badge/?version=latest
   :target: https://cosmic-profiles.readthedocs.io/en/latest/?badge=latest
.. |Zenodo| image:: https://zenodo.org/badge/475501515.svg
   :target: https://zenodo.org/badge/latestdoi/475501515
.. |JOSS| image:: https://joss.theoj.org/papers/10.21105/joss.05008/status.svg
   :target: https://doi.org/10.21105/joss.05008
.. |Build status| image:: https://app.travis-ci.com/tibordome/cosmic_profiles.svg?branch=master
   :target: https://app.travis-ci.com/tibordome/cosmic_profiles
.. |Name| image:: https://img.shields.io/badge/recipe-cosmic_profiles-green.svg
   :target: https://anaconda.org/conda-forge/cosmic_profiles
.. |Downloads| image:: https://img.shields.io/conda/dn/conda-forge/cosmic_profiles.svg
   :target: https://anaconda.org/conda-forge/cosmic_profiles
.. |Version| image:: https://img.shields.io/conda/vn/conda-forge/cosmic_profiles.svg
   :target: https://anaconda.org/conda-forge/cosmic_profiles
.. |Platforms| image:: https://img.shields.io/conda/pn/conda-forge/cosmic_profiles.svg
   :target: https://anaconda.org/conda-forge/cosmic_profiles
.. |License| image:: https://anaconda.org/conda-forge/cosmic_profiles/badges/license.svg
   :target: https://anaconda.org/conda-forge/cosmic_profiles

Owner

  • Name: Tibor Dome
  • Login: tibordome
  • Kind: user
  • Location: Leuven, Belgium
  • Company: Septentrio

JOSS Publication

CosmicProfiles: A Python package for radial profiling of finitely sampled dark matter halos and galaxies
Published
May 16, 2023
Volume 8, Issue 85, Page 5008
Authors
Tibor Dome ORCID
PhD Student, University of Cambridge, Institute of Astronomy, Madingley Rd, Cambridge CB3 0HA, United Kingdom
Editor
Axel Donath ORCID
Tags
astronomy cosmology simulations point clouds

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 331
  • Total Committers: 2
  • Avg Commits per committer: 165.5
  • Development Distribution Score (DDS): 0.003
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
tibordome t****e@a****h 330
septentrio-users g****r@s****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 2
  • Total pull requests: 7
  • Average time to close issues: N/A
  • Average time to close pull requests: 9 minutes
  • Total issue authors: 2
  • Total pull request authors: 1
  • Average comments per issue: 9.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • cspotz (1)
  • benediktdiemer (1)
Pull Request Authors
  • tibordome (7)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 24 last-month
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 0
    (may contain duplicates)
  • Total versions: 15
  • Total maintainers: 1
pypi.org: cosmic-profiles

Implements 3D point cloud algorithms for estimation and fitting of shape and density profiles

  • Versions: 13
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 24 Last month
Rankings
Dependent packages count: 6.6%
Downloads: 19.6%
Average: 23.1%
Stargazers count: 28.2%
Forks count: 30.5%
Dependent repos count: 30.6%
Maintainers (1)
Last synced: 4 months ago
conda-forge.org: cosmic_profiles
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 34.0%
Average: 51.2%
Dependent packages count: 51.2%
Stargazers count: 58.4%
Forks count: 61.1%
Last synced: 4 months ago

Dependencies

setup.py pypi
  • cython *
.github/workflows/draft-pdf.yml actions
  • actions/checkout v2 composite
  • actions/upload-artifact v1 composite
  • openjournals/openjournals-draft-action master composite
.github/workflows/tests.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
docs/environment.yml conda
  • cython
  • h5py
  • matplotlib
  • mpi4py
  • numpy 1.20.3.*
  • pathos
  • psutil
  • python 3.8.*
  • scikit-learn
  • scipy
  • sphinx-autoapi
  • sphinx_rtd_theme 1.0.0.*
  • twine
pyproject.toml pypi