pynbody.analysis.angmom

pynbody.analysis.angmom#

Analysis involving angular momentum.

Functions

align(h, vec_to_xform[, disk_size, ...])

Reposition and rotate the ancestor of h to place the angular momentum into a specified orientation.

ang_mom_vec(snap)

Calculates the angular momentum vector of the specified snapshot.

ang_mom_vec_units(snap)

Deprecated alias for ang_mom_vec

calc_faceon_matrix(angmom_vec[, up])

Calculate the rotation matrix to put the specified angular momentum vector face-on.

calc_sideon_matrix(angmom_vec[, along])

Calculate the rotation matrix to put the specified angular momentum vector side-on.

faceon(h, **kwargs)

Reposition and rotate the ancestor of h to place the disk face-on (i.e. into the x-y plane).

sideon(h, **kwargs)

Reposition and rotate the ancestor of h to place the disk edge-on (i.e. into the x-z plane).

spin_parameter(snap)

Return the spin parameter lambda' of a centered halo