sample_alos_sources_RPL

peebee.sampling.sample_alos_sources_RPL(model, n, com, rscale, gamma, low_lim=0.01, up_lim=5, sun_pos=(8.178, 0.0, 0.0))

Generate a sample of n alos sources from a given model according to a spherically symmetric power law centered on center of mass (COM).

The relative likelihood of finding a source at distance r from the COM follows rho ∝ (r/r_0)^gamma.

Model (Model):

Gravitational model to compute accelerations from

N (int):

Number of sample points to generate

Com (tuple):

Center of mass position (x, y, z) in kpc

Rscale (float):

Scale radius for the power law distribution (kpc)

Gamma (float):

Power law index for the radial distribution

Low_lim (float, optional):

Lower bound of the distribution at low_lim*rscale. Default is 0.01.

Up_lim (float, optional):

Upper bound of the distribution at up_lim*rscale. Default is 5.

Sun_pos (tuple, optional):

Solar position in Galactocentric coordinates (kpc). Default is (8.0, 0.0, 0.0).

Returns:

sample_data (tuple) - Coordinates and accelerations: (x, y, z, alos) where coordinates are in kpc and alos in mm/s/yr