plot_mag_hist¶
- beast.plotting.plot_mag_hist.plot_mag_hist(data_file, stars_per_bin=100, max_bins=75)[source]¶
Make histograms of magnitudes. This only uses the [filter]_VEGA, so sources removed with quality cuts are not included.
- Parameters:
- data_filestr
path+file for the stellar photometry
- stars_per_binfloat (default=100)
This is the average number of stars per histogram bin. Calculate the number of bins to use for each histogram by dividing the total number of stars by this value (this ensures each histogram is reasonably smooth). The total number of bins is capped at max_bins.
- max_binsint (default=75)
maximum number of bins for each histogram.
- Returns:
- peak_magsdict
dictionary with the peak magnitudes, for possible later use