pynbody.analysis.morphology.estimate_jcirc_from_rotation_curve#
- pynbody.analysis.morphology.estimate_jcirc_from_rotation_curve(h, particles_per_bin=1000)[source]#
Estimate the circular angular momentum as a function of radius in the disk (x-y) plane.
This routine calculates the circular velocity as a function of radius for the disk, using a profile with a fixed number of particles per radial bin. It then estimates a circular angular momentum for each individual particle by interpolating the profile.
Warning
This routine is only valid for simulations where all the stars are anyway in quite a narrow disc. Otherwise the interpolation back onto the individual particles carries limited meaning.
For more general cases, use
estimate_jcirc_from_energy()
instead.- Parameters:
h (SimSnap) – The simulation snapshot to analyze
particles_per_bin (int) – The approximate number of particles per bin in the profile. Default is 1000.