pynbody.snapshot

pynbody.snapshot#

Implements classes to load and manipulate snapshot data

Functions

load(filename, *args, **kwargs)

Loads a file using the appropriate class, returning a SimSnap instance.

new([n_particles, order, class_])

Create a blank SimSnap, with the specified number of particles.

Modules

pynbody.snapshot.ascii

Supports loading of ASCII snapshots.

pynbody.snapshot.copy_on_access

Implements classes to automatically copy data from another snapshot when needed.

pynbody.snapshot.gadget

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

pynbody.snapshot.gadgethdf

Implements reading HDF5 Gadget files, in various variants.

pynbody.snapshot.grafic

Support for loading grafIC initial conditions files

pynbody.snapshot.namemapper

Tool for mapping from individual simulation code's naming conventions to pynbody naming conventions.

pynbody.snapshot.nchilada

Implements loading of nchilada files.

pynbody.snapshot.ramses

Implements classes and functions for handling RAMSES files.

pynbody.snapshot.simsnap

Implementation of the key simulation snapshot class.

pynbody.snapshot.subsnap

pynbody.snapshot.swift

pynbody.snapshot.tipsy

tipsy

pynbody.snapshot.util

util