Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.07 KB

README.md

File metadata and controls

41 lines (28 loc) · 1.07 KB

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.