scopesim_templates.misc.misc.uniform_source#
- scopesim_templates.misc.misc.uniform_source(sed, amplitude=None, filter_curve='V', extend=60, ra=0, dec=0) Source#
Create an extended uniform source with an arbitrary spectrum.
This function reates an image with extend^2 pixels with size of 1 arcsec^2 so provided amplitudes. are in flux or magnitudes per arcsec^2
- Parameters:
sed (synphot or spextra sed)
amplitude (float) – magnitude or flux (PER ARCSEC^2) of the spectrum in the specified filter_curve.
filter_curve (str) – any filter curve
extend (int) – extension of the field in arcsec, will always produce a square field
ra (float) – RA of the field center (not used)
dec (float) – DEC of field center (not used)
- Returns:
src
- Return type:
scopesim.Source