generate_wavelengths

synphot.utils.generate_wavelengths(minwave=500, maxwave=26000, num=10000, delta=None, log=True, wave_unit=Unit('Angstrom'))[source]

Generate wavelength array to be used for spectrum sampling.

\[minwave \le \lambda < maxwave\]
Parameters
minwave, maxwavefloat

Lower and upper limits of the wavelengths. These must be values in linear space regardless of log.

numint

The number of wavelength values. This is only used when delta=None.

deltafloat or None

Delta between wavelength values. When log=True, this is the spacing in log space.

logbool

If True, the wavelength values are evenly spaced in log scale. Otherwise, spacing is linear.

wave_unitstr or Unit

Wavelength unit. Default is Angstrom.

Returns
wavesetQuantity

Generated wavelength set.

waveset_strstr

Info string associated with the result.