flat_spectrum

simcado.source.flat_spectrum(mag, filter_name='Ks', return_ec=False)[source]

Return a flat spectrum scaled to a certain magnitude

Parameters
magfloat

[mag] magnitude of the source

filter_namestr, TransmissionCurve, optional

str - filter name. See simcado.optics.get_filter_set(). Default: “Ks” TransmissionCurve - output of simcado.optics.get_filter_curve()

return_ecbool, optional

If True, a simcado.spectral.EmissionCurve object is returned. Default is False

Returns
lamnp.ndarray

[um] The centres of the wavelength bins for the new spectrum

specnp.array

[ph/s/m2/arcsec] The spectrum scaled to the specified magnitude