constant_sb_stars_per_pix

artpop.stars.constant_sb_stars_per_pix(sb, mean_mag, distance=<Quantity 10. pc>, pixel_scale=0.2)[source]

Calculate the number of stars per pixel for a uniform distribution (i.e., constant surface brightness) of stars.

Parameters
sbfloat

Surface brightness of stellar population.

mean_magfloat

Mean stellar magnitude of the stellar population.

distancefloat or Quantity

Distance to source. If float is given, the units are assumed to be Mpc.

pixel_scalefloat or Quantity, optional

The pixel scale of the mock image. If a float is given, the units will be assumed to be arcsec per pixels.

Returns
num_stars_per_pixfloat

The number of stars per pixel.