scopesim.source.source_utils

scopesim.source.source_utils#

Functions

convert_to_list_of_spectra(spectra, lam)

Produce SourceSpectrum instances or pass them through.

make_img_wcs_header(pixel_scale, image_size)

Create a WCS header for an image.

parse_sed_table(filename)

Parse SED table from example cubes.

photons_in_range(spectra, wave_min, wave_max)

Integrate photons from spectrum in given wavelength range.

scale_imagehdu(imagehdu, waverange[, area])

..todo: implement this

validate_source_input(**kwargs)

Check validity of kwargs passed to Source object.