flat_spectrum_sb

simcado.source.flat_spectrum_sb(mag_per_arcsec, filter_name='Ks', pix_res=0.004, return_ec=False)[source]

Return a flat spectrum for a certain magnitude per arcsec

Parameters
mag_per_arcsecfloat

[mag/arcsec2] surface brightness 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()

pix_resfloat

[arcsec] the pixel resolution. Default is 4mas (i.e. 0.004)

return_ecbool, optional

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

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