pynbody.analysis

pynbody.analysis#

Tools for scientific analysis with pynbody

This sub-package contains a number of modules that enable scientific analysis beyond the basic capabilities of pynbody. The most essential tools are imported into the sub-package itself, so that they can be accessed directly from pynbody.analysis. For example, pynbody.analysis.halo.center() is accessible as pynbody.analysis.center(), while pynbody.analysis.angmom.faceon() is accessible as pynbody.analysis.faceon().

Modules

angmom

Analysis involving angular momentum.

cosmology

Functions for common cosmological calculations.

halo

Functions for calculating crucial properties of halos, such as their center, shape, and virial radius.

hifrac

Deprecated module for calculating HI fractions with optional self-shielding.

hmf

Routines related to halo mass function and other cosmological calculations.

ionfrac

Ionisation fraction estimations from grids of cloudy models

luminosity

Routines and derived arrays for calculating luminosities and magnitudes.

morphology

Calculations relevant to galactic morphology

profile

Support for creating profiles of various quantities, normally as a function of 2d or 3d radius.

ramses_util

RAMSES-specific analysis utilities

theoretical_profiles

Implements functional forms of known density profiles and code to fit them to simulation data.