snapAnalysis documentation¶
snapAnalysis is an N-body simulation snapshot analysis package. snapAnalysis is designed specifically for working with idealized simulations of at most a few galaxies, rather than cosmological simulations. Currently, it supports any GADGET-format snapshots stored in the hdf5 format, though compatibility with older GADGET binary files is planned for the future. snapAnalysis can also handle fuzzy dark matter snapshots generated by Arepo’s BECDM module.
snapAnalysis supports many common workflows for handling snapshots, including particle loading, particle filtering, centering, rotations, coordinate transformations, galaxy shape analysis, particle orbit extraction, galaxy center-of-mass orbit extraction, and more. Also included are a few basic visualization functions for plotting density and potential fields, density and anisotropy profiles, and more. Units are detected automatically from snapshot headers and handled using astropy’s units module.
Note
snapAnalysis is still in early development. We encourage contributions following our guidelines.
Acknowledgement¶
If you use snapAnalysis as part of a published work, we request that you cite the Zenodo record for the version of the source code that you used:
@software{foote_snapanalysis_2026,
author = {Hayden R. Foote},
title = {hfoote/snapAnalysis: Version 0.1.1},
month = may,
year = 2026,
publisher = {Zenodo},
version = {v0.1.1},
doi = {10.5281/zenodo.20386578},
url = {https://doi.org/10.5281/zenodo.20386578},
}