Module: radial_distributions¶
-
equal_area_annuli
(R, N, i=None)[source]¶ provides the radius r[i] for N concentric annular regions in such a way that each annular region surface s[i]=pi*(r[i]**2-r[i-1]**2)=pi*R**2/N
- Args:
- R (float): the outern radius N (int): the total number of annular regions i (int) or array of (int): the index for the annular region or the array of indices
- Returns:
- r (float): the radius r[i] (if is scalar) or the the full array r if i is an array
-
frac_flux_in_bin
(image_array, r_dist, r_bin)[source]¶ Parameters: image_array
r_dist_array
r_dist_max
r_bin
-
radial_histogram
(r_coords, r_max=None, N_bins=10, use_equal_area_annuli=False, r_norm=False)[source]¶
-
radial_polar_local_maxima
(polar_r, polar_theta, flux_values, r_max=None, N_bins=10, use_equal_area_annuli=False)[source]¶
-
radial_profile
(polar_r, flux_values, r_max=None, N_bins=10, use_equal_area_annuli=False, intensity=True, pix_size=1.0)[source]¶ Function to evaluate the radial profile, given radial_coordinates of points/pixels and their fluxes values if intesity==True, then the flux in the annular region is divided by the number of pixels
Parameters: polar_r
flux_values
r_max
N_bins
use_equal_area_annuli
intensity
Returns: flux_values
r
-
radial_profile_image
(image_array, x_c, y_c, r_max=None, N_bins=10, use_equal_area_annuli=False, intensity=True, pix_size=1.0, prune_zeros=True)[source]¶ Function to evaluate the radial profile, given radial_coordinates of points/pixels and their fluxes values if intesity==True, then the flux in the annular region is divided by the number of pixels
Parameters: polar_r
flux_values
r_max
N_bins
use_equal_area_annuli
intensity
Returns: flux_values
r