GadgetIO

Binary IO for the cosmological Tree-SPH code Gadget

https://github.com/ludwigboess/gadgetio.jl

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
Last synced: 10 months ago · JSON representation

Repository

Binary IO for the cosmological Tree-SPH code Gadget

Basic Info
  • Host: GitHub
  • Owner: LudwigBoess
  • License: mit
  • Language: Julia
  • Default Branch: master
  • Homepage:
  • Size: 69.5 MB
Statistics
  • Stars: 10
  • Watchers: 2
  • Forks: 1
  • Open Issues: 4
  • Releases: 47
Created about 6 years ago · Last pushed about 1 year ago
Metadata Files
Readme License Zenodo

README.md

| Documentation | Build Status | License | Citation |:-----------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------:| :-----------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------:| | Build status codecov.io | The MIT License | DOI |

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

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 Email 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
enhancement (8) bug (1)
Pull Request Labels
dependencies (1) github_actions (1)

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

  • Versions: 47
  • Dependent Packages: 2
  • Dependent Repositories: 0
  • Downloads: 33 Total
Rankings
Dependent repos count: 9.9%
Dependent packages count: 23.0%
Average: 32.9%
Stargazers count: 45.1%
Forks count: 53.5%
Last synced: 11 months ago

Dependencies

.github/workflows/jlpkgbutler-butler-workflow.yml actions
  • actions/checkout v2 composite
  • davidanthoff/julia-pkgbutler releases/v1 composite
.github/workflows/jlpkgbutler-ci-master-workflow.yml actions
  • 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
.github/workflows/jlpkgbutler-ci-pr-workflow.yml actions
  • 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
.github/workflows/jlpkgbutler-docdeploy-workflow.yml actions
  • actions/checkout v2 composite
  • julia-actions/julia-buildpkg latest composite
  • julia-actions/julia-docdeploy releases/v1 composite
.github/workflows/jlpkgbutler-tagbot-workflow.yml actions
  • JuliaRegistries/TagBot v1 composite