Skip to content
stephenpardyPublic

About

Tools to work with Gadget snapshot.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

Repository files navigation

SnapTools

SnapTools's Travis CI Status Coverage Status

Bespoke tools for working with isolated or interacting galaxy snapshots produced by Gadget (or gadget family). Does not work for Cosmological snapshots.

Install:

pip install git+https://github.com/stephenpardy/SnapTools.git

PyPI distro coming soon.

Requires:

numpy>=1.10.0

matplotlib

multiprocess

h5py

scipy

How to use:

from snaptools import snapshot
snap = snapshot.Snapshot('tests/galaxies0.hdf5')
print(snap)  # get info about the snapshot
print(snap.pos['stars'].mean(axis=0))  # get a rough center of mass of the simulation

Updated tutorials coming soon. In the meantime, see https://github.com/stephenpardy/Offsets_Notebooks for some older examples (not all may work with this version).

TODO

  • 100% testing
  • Add better plotting methods
  • Add interface to YT.

About

Tools to work with Gadget snapshot.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages