density#

jeanspy.model.StellarModel.density

Class and construction: StellarModel.

StellarModel.density(distance_from_center, dimension)[source]#

Dispatch to the projected or intrinsic normalized tracer density.

distance_from_center is a radius in pc. dimension must be ‘2d’ or ‘3d’, returning pc^-2 or pc^-3 respectively with the concrete profile’s input shape. An unsupported dimension raises ValueError.