pynbody.snapshot.gadget

pynbody.snapshot.gadget#

Implements reading old-style gadget binary files (format 1 and 2, but not HDF5).

The gadget array names are mapped into pynbody array names according to the mappings given by the config.ini section [gadget-name-mapping].

Very old gadget-1 style files have a fixed block order, which is specified in the config.ini section [gadget-1-blocks].

Functions

gadget_type(fam)

Classes

GadgetSnap(filename[, only_header, ...])

Class for reading Gadget-1 and Gadget-2 old-style (i.e. pre-HDF5) snapshots.