add spectral distance dimming keyword in get_mags