pynbody.snapshot.gadgethdf

pynbody.snapshot.gadgethdf#

Implements reading HDF5 Gadget files, in various variants.

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

The gadget particle groups are mapped into pynbody families according to the mappings specified by the config.ini section [gadgethdf-type-mapping]. This can be many-to-one (many gadget particle types mapping into one pynbody family), but only datasets which are common to all gadget types will be available from pynbody.

Spanned files are supported. To load a range of files snap.0.hdf5, snap.1.hdf5, … snap.n.hdf5, pass the filename snap. If you pass e.g. snap.2.hdf5, only file 2 will be loaded.

Functions

CIV(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Fraction of Carbon CIV

HI(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Fraction of Neutral Hydrogen HI use limited CLOUDY table

HID12(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Fraction of Neutral Hydrogen HI use limited CLOUDY table, using the Duffy +12a prescription for selfshielding

HII(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Number of HII ions per proton mass

HIeos(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Fraction of Neutral Hydrogen HI use limited CLOUDY table, assuming dense EoS gas is selfshielded

HeI(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Fraction of Helium HeI

HeII(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Fraction of Helium HeII

HeIII(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Number of HeIII ions per proton mass

MGII(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Fraction of Magnesium MgII

NV(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Fraction of Nitrogen NV

OI(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Fraction of Oxygen OI

OII(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Fraction of Oxygen OII

OVI(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Fraction of Oxygen OVI

SIV(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Fraction of Silicon SiIV

c_n_sq(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Turbulent amplitude C_N^2 for use in SM calculations (e.g. Eqn 20 of Macquart & Koay 2013 ApJ 776 2).

caxh(self)

cosmodm(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Cosmological Dispersion measure per SPH particle includes (1+z) factor, currently ignoring n_e contribution from He

cxh(self)

dm(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Dispersion measure per SPH particle currently ignoring n_e contribution from He

doppler_redshift(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Doppler Redshift from LoS Velocity 'losvel' using SR

em(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Emission Measure (n_e^2) per particle to be integrated along LoS

feh(self)

halpha(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: H alpha intensity (based on Emission Measure n_e^2) per particle to be integrated along LoS

hetot(self)

hexh(self)

hydrogen(self)

mgfe(sim)

mgxh(self)

ne(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Number of electrons per proton mass, ignoring the contribution from He!

nefe(sim)

nexh(self)

nxh(self)

ofe(self)

oxh(self)

p(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Calculate the pressure for gas particles, including polytropic equation of state gas

redshift(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Redshift from LoS Velocity 'losvel'

rho_ne(sim)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Electron number density per SPH particle, currently ignoring the contribution from He!

sife(sim)

sixh(self)

sxh(self)

u(self)

Derived [GadgetHDFSnap, SubFindHDFSnap]: Gas internal energy derived from snapshot variable or temperature

Classes

EagleLikeHDFSnap(filename)

Reads Eagle-like HDF snapshots (download at http://data.cosma.dur.ac.uk:8080/eagle-snapshots/)

GadgetHDFSnap(filename)

Class that reads HDF Gadget snapshots.

SubFindHDFSnap(filename)

Reads the variant of Gadget HDF snapshots that include SubFind output inside the snapshot itself.