GadgetIO
Binary IO for the cosmological Tree-SPH code Gadget
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
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.2%) to scientific vocabulary
Repository
Binary IO for the cosmological Tree-SPH code Gadget
Basic Info
Statistics
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 4
- Releases: 47
Metadata Files
README.md
| Documentation | Build Status | License | Citation
|:-----------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------:| :-----------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------:|
|
|
|
|
GadgetIO.jl
This package provides some basic IO functionality to work with the Smoothed-Particle Hydrodynamics code Gadget by Volker Springel.
You can use it to read/write snapshot and subfind output and we also provide some functionality to read the log files.
It is taylored for working with the development version of P-Gadget3, specifically OpenGadget3 developed by Klaus Dolag and contributers. Development is focused on IO for Binary Format 2. A lot of the routines are based on IDL scripts by Klaus Dolag (not public).
If you use GadgetIO.jl in your publications please cite Böss & Valenzuela.
Please see the Documentation for details.
Quickstart
Reading Snapshot Data
GadgetIO.jl is specialized to read Gadget snapshots of Format 2. The structure of a Format 2 snapshot is as follows:
``` 8 # size of the blockname block (Int32) BLOCKNAME # Blockname (4*Char) 8+SIZE_BLOCK # number of bytes to skip if block should not be read 8 # end of blockname block
SIZEBLOCK # size of the current block in bytes {...} # content of the block ordered by particle type SIZEBLOCK # end of the current block ```
which repeats for every block.
Gadget defines 6 particle types:
- 0: Gas particles
- 1: DM particles
- 2: Disk/boundary particles
- 3: Bulge/boundary particles
- 4: Star particles
- 5: Black Hole particles
So if you want to read for example the poistions of gas particles you can do this by using:
julia``` filename = "path/to/your/snapshot"
gaspos = readblock(filename, "POS", parttype=0) ```
Similar for DM particles: julia``` filename = "path/to/your/snapshot"
dmpos = readblock(filename, "POS", parttype=1) ```
We recommend running Gadget with the compiler flag WRITE_INFO_BLOCK to make IO easier, however you can also read most blocks out of the box due to fall-back InfoLines.
If you work on a development version of Gadget that contains output blocks that don't have fall-back InfoLines you can also supply your own to the read_block function.
You can also read subvolumes of simulations, either along the Peano-Hilbert curve or in a brute force way. Or you can read particles by custom filtering and store the memory-mapping to disk. See the Documentation for details.
Owner
- Name: Ludwig
- Login: LudwigBoess
- Kind: user
- Location: Munich
- Repositories: 20
- Profile: https://github.com/LudwigBoess
I'm a PhD student at the University Observatory Munich working on cosmological MHD simulations.
GitHub Events
Total
- Create event: 6
- Commit comment event: 2
- Release event: 1
- Watch event: 1
- Delete event: 3
- Issue comment event: 3
- Push event: 61
- Pull request event: 5
Last Year
- Create event: 6
- Commit comment event: 2
- Release event: 1
- Watch event: 1
- Delete event: 3
- Issue comment event: 3
- Push event: 61
- Pull request event: 5
Committers
Last synced: over 3 years ago
All Time
- Total Commits: 360
- Total Committers: 7
- Avg Commits per committer: 51.429
- Development Distribution Score (DDS): 0.567
Top Committers
| Name | Commits | |
|---|---|---|
| LudwigBoess | l****s@u****e | 156 |
| Lucas Valenzuela | l****a@u****m | 73 |
| Ludwig Boess | d****g@c****e | 63 |
| LudwigBoess | l****s@o****e | 39 |
| Ludwig | 3****s@u****m | 20 |
| github-actions[bot] | 4****]@u****m | 7 |
| Julia Package Butler | 2 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 10
- Total pull requests: 120
- Average time to close issues: 4 months
- Average time to close pull requests: 9 days
- Total issue authors: 4
- Total pull request authors: 4
- Average comments per issue: 4.3
- Average comments per pull request: 0.85
- Merged pull requests: 101
- Bot issues: 0
- Bot pull requests: 18
Past Year
- Issues: 0
- Pull requests: 6
- Average time to close issues: N/A
- Average time to close pull requests: 7 days
- Issue authors: 0
- Pull request authors: 4
- Average comments per issue: 0
- Average comments per pull request: 0.67
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 2
Top Authors
Issue Authors
- LudwigBoess (7)
- 3r3m0s (1)
- lucasvalenzuela (1)
- JuliaTagBot (1)
Pull Request Authors
- LudwigBoess (67)
- lucasvalenzuela (42)
- github-actions[bot] (17)
- dependabot[bot] (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- julia 33 total
- Total dependent packages: 2
- Total dependent repositories: 0
- Total versions: 47
juliahub.com: GadgetIO
Binary IO for the cosmological Tree-SPH code Gadget
- Documentation: https://docs.juliahub.com/General/GadgetIO/stable/
- License: MIT
-
Latest release: 0.8.1
published over 1 year ago
Rankings
Dependencies
- actions/checkout v2 composite
- davidanthoff/julia-pkgbutler releases/v1 composite
- actions/checkout v2 composite
- codecov/codecov-action v1 composite
- julia-actions/julia-buildpkg latest composite
- julia-actions/julia-processcoverage v1 composite
- julia-actions/julia-runtest latest composite
- julia-actions/setup-julia latest composite
- actions/checkout v2 composite
- codecov/codecov-action v1 composite
- julia-actions/julia-buildpkg latest composite
- julia-actions/julia-processcoverage v1 composite
- julia-actions/julia-runtest latest composite
- julia-actions/setup-julia latest composite
- actions/checkout v2 composite
- julia-actions/julia-buildpkg latest composite
- julia-actions/julia-docdeploy releases/v1 composite
- JuliaRegistries/TagBot v1 composite