scopesim.source.source_templates.uniform_source#
- scopesim.source.source_templates.uniform_source(sp=None, extent=60)#
Simplified form of scopesim_templates.misc.uniform_source, mostly intended for testing
This function creates an image with extend^2 pixels with pixel size of 1 arcsec^2 so provided amplitudes are in flux or magnitudes per arcsec^2
It accepts any synphot.SourceSpectrum compatible object
- spsynphot.SourceSpectrum
defaults to vega_spectrum() with magnitude 0 mag/arcsec2
- extentint, default 60
extension of the field in arcsec, will always produce a square field. Default value produces a field of 60x60 arcsec