https://github.com/astro-informatics/stringgen
Scattering based cosmic string emulation
Science Score: 36.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
Found 1 DOI reference(s) in README -
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.7%) to scientific vocabulary
Keywords
Repository
Scattering based cosmic string emulation
Basic Info
Statistics
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
<!-- ALL-CONTRIBUTORS-BADGE:END -->
Scattering based cosmic string emulation
stringgen is a tool for creating emulations of cosmic string maps with statistics similar to those of a single (or small ensemble) of reference simulations. It uses wavelet phase harmonics to calculate a compressed representation of these reference simulations, which may then be used to synthesize new realisations with accurate statistical properties, e.g. 2 and 3 point correlations, skewness, kurtosis, and Minkowski functionals.
Install from source :computer:
One may install the code from source by cloning and installing manually:
git clone https://github.com/astro-informatics/stringgen.git
cd stringgen
bash build_stringgen.sh
Usage :rocket:
To generate your own cosmic string maps stringgen is as simple follows:
``` python from stringgen import CosmicStringEmulator
Configure the emulator
emulator = CosmicStringEmulator( emulation_shape=(1024, 1024), # Shape of image J=9, # Number of wavelet scales L=9 # Number of directions )
Load latent data-bank
features = emulator.get_features()
Generate n_emulation=1 synthetic cosmic string maps
emulation = emulator.emulate(features, n_emulations=1) ```
Contributors ✨
Thanks goes to these wonderful people (emoji key): <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore-start --> <!-- markdownlint-disable -->
Matt Price 💻 👀 🤔 |
Matthijs Mars 💻 👀 🤔 |
Auggie Marignier 💻 |
Alessio Spurio Mancini 💻 |
Jason McEwen 💻 👀 🤔 |
Matthew Docherty 💻 |
Attribution :books:
Should this code be used in any way, we kindly request that the following article is referenced. A BibTeX entry for this reference may look like:
@article{price:stringgen,
author = "Matthew A. Price, Matthijs Mars, Matthew M. Docherty, Alessio Spurio Mancini, Augustin Marignier, Jason. D. McEwen",
title = "Fast emulation of anisotropies induced in the cosmic microwave background by cosmic strings",
year = "2023",
journal = "The Open Journal of Astrophysics,
doi = "10.21105/astro.2307.04798",
eprint = "arXiv:2307.04798"
}
License :memo:
We provide this code under an MIT open-source licence with the hope that it will be of use to a wider community.
Copyright 2023 Matthijs Mars, Matthew Price, Jason McEwen and contributors.
stringgen is free software made available under the MIT License. For
details see the LICENSE file.
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
Dependencies
- actions/checkout v2.3.1 composite
- actions/setup-python v2 composite
- pytest * test
- matplotlib ==3.5.2
- numpy ==1.20.0
- psutil ==5.9.1
- pywph ==1.0.1
- scipy ==1.8.0
- torch ==2.0.1
- tqdm ==4.64.0