sample_photon¶
- luminet.black_hole.sample_photon(min_r, max_r, incl, bh_mass, n)¶
Sample a random photon from the accretion disk
Each photon is a dictionary with the following properties:
radius: radius of the photon on the accretion disk \(r\)alpha: angle of the photon on the accretion disk \(\alpha\)impact_parameter: impact parameter of the photon \(b\)z_factor: redshift factor of the photon \(1+z\)
This function is used in
sample_photons()to sample photons on the accretion disk of a black hole in a parallellized manner.Attention
Photons are not sampled uniformly on the accretion disk, but biased towards the center. Black holes have more flux delta towards the center, and thus we need more precision there. This makes the triangulation with hollow mask in the center also very happy.
- Parameters:
min_r – minimum radius of the accretion disk
max_r – maximum radius of the accretion disk
incl – inclination of the observer wrt the disk
bh_mass – mass of the black hole
n – order of the isoradial
- Returns:
Dict – Dictionary containing all basic properties of a single photon from the accretion disk.