scopesim_templates.misc.misc.source_from_file

scopesim_templates.misc.misc.source_from_file#

scopesim_templates.misc.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

  • ext (int) – fits extension

  • cut

  • **kwargs (arguments passed to fits.open)