create_color_grid¶
- nyx.spectra.library.create_color_grid(mag_band, color, color_range, spec_library, EBV_range=None, extmod=None, photon_flux=False)[source]¶
Create a synthetic colour grid with dust reddening.
- Parameters:
mag_band (Bandpass) – Defines the magnitude system.
color (tuple of Bandpass) – Two bandpasses defining the colour
color[0] - color[1].color_range (tuple of float) –
(min, max)colour range to interpolate over.spec_library (SpectralGrid) – Spectral library to redden.
EBV_range (tuple of float, or None) –
(min, max)E(B-V) range, sampled at 20 points.extmod (extinction model, optional) – Defaults to
G23(Rv=3.1).photon_flux (bool) – Whether to convert the output to photon/m^2/s/nm.
- Return type: