scopesim_templates.misc.source_from_file

scopesim_templates.misc.source_from_file(filename, pixel_scale, sed, amplitude, filter_curve, cut=0, ext=1, **kwargs) Source

Create a source from a fits image.

TODO: Pass the header (or the WCS) to the source object

Parameters:
filename
pixel_scale
sed
amplitude
filter_curve
extint

fits extension

cut
**kwargsarguments passed to fits.open
Returns
——-