synthpop.modules.population_density.gums_bar

Bar density model from the Gaia Universe Model Snapshot

Classes

GumsBar

Bar density model from the Gaia Universe Model Snapshot

Module Contents

class synthpop.modules.population_density.gums_bar.GumsBar(n0, x0, y0, z0, alpha, beta, gamma, c_perp, c_para, dz_bone=0, x_bone=0, r_max=np.inf, sigma_cut_of=1e-10, **kwargs)

Bases: synthpop.modules.population_density._population_density.PopulationDensity

Bar density model from the Gaia Universe Model Snapshot

Attributes

n0 : float x0 : float y0 : float z0 : float sigma_cut_of : float c_para : float c_perp : float dz_bone : float x_bone : float r_max : float

density_unit = 'number'
n0
x0
y0
z0
sigma_cut_of = 1e-10
c_para
c_perp
dz_bone = 0
x_bone = 0
r_max
rot
density(r: numpy.ndarray, phi_rad: numpy.ndarray, z: numpy.ndarray) numpy.ndarray

Estimates the density at the given position

Parameters

rndarray [‘kpc’]

Distance to z axis

phi_radndarray [‘rad’]

azimuth angle of the stars. phi_rad = 0 is pointing towards sun.

z : height above the galactic plane (corrected for warp of the galaxy)

Returns

nndarray [#/kpc^3]

density at the given location in number density.