get_sky_spectrum

simcado.spectral.get_sky_spectrum(fname, airmass, return_type=None, **kwargs)[source]

Return a spectral curve for the sky for a certain airmass

Parameters
fnamestr

the file containing the spectral curves

airmassfloat, optinal

Default is 1.0. Acceptable values are between 1.0 and 3.0

return_typestr, optional

[“transmission”, “emission”, None] Default is None. A TransmissionCurve or EmissionCurve object will be returned if desired. If None two arrays are returned: (lam, val)

**kwargsoptional

kwargs are passed directly onto the TransmissionCurve or EmissionCurve classes

Returns
TransmissionCurve or EmissionCurve or (lam, val)

By default lam is in [um] and val [ph/s/m2/um/arcsec2] if val is an emission spectrum

Notes

This function is designed to work with a table of values produced by SkyCalc The column names must begin with lambda and then columns must be named according to the airmass following this pattern: “X1.5” for an airmass of 1.5