Gadget N-body cosmological simulation code snapshot I/O utilities

Functions for reading and writing Gadget N-body snapshots. The Gadget code is popular in astronomy for running N-body / hydrodynamical cosmological and merger simulations. To find out more about Gadget see the main distribution page at



First version


Fixed bug in snap read that meant it didn't work on snapshots with particles in multiple species lists.


Fixed issue that code wouldn't work with mass array being specified per particle. Now it will assign masses to particles based on the header mass information.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.1.2 by Aaron Robotham, 5 years ago

Browse source code at

Authors: Aaron Robotham

Documentation:   PDF Manual  

Task views: Chemometrics and Computational Physics

GPL-2 license

See at CRAN