The radial_dens_prof() function stores as the raddi values the quantity
clp['bin_width'] / 2. + (clp['bin_width'] * i)
where i is the square ring being processed (see image below). This means that stars located in a corner of these square rings will be stored as having a distance :
d = bw*i + bw/2
when in reality they are located at a radius of:
r = sqrt(d**2 + d**2) = sqrt(2) * d
This means that (for this extreme position) the distance currently used is only 70% (d=1/sqrt(2)*r) of the actual distance.
The
radial_dens_prof()
function stores as the raddi values the quantitywhere
i
is the square ring being processed (see image below). This means that stars located in a corner of these square rings will be stored as having a distance :when in reality they are located at a radius of:
This means that (for this extreme position) the distance currently used is only 70% (
d=1/sqrt(2)*r
) of the actual distance.