scopesim_templates.extragalactic.galaxies.galaxy

Contents

scopesim_templates.extragalactic.galaxies.galaxy#

scopesim_templates.extragalactic.galaxies.galaxy(sed, z=0, amplitude=15, filter_curve='g', pixel_scale=0.1, r_eff=2.5, n=4, ellip=0.1, theta=0, extend=3, ra=0.0, dec=0.0)#

Create a source object of a galaxy described by its Sersic index and other parameters.

This function is ideal for imaging or simple spectroscopy.

Parameters:
  • sed (str or Spextrum)

  • z (float) – redshift of the galaxy

  • r_eff (float) – effective radius of the galaxy in arcsec, it accepts astropy.units

  • amplitude (float) – magnitude or flux of the galaxy, it accepts astropy.units

  • filter_curve (str) – name of the filter where the magnitude refer to

  • pixel_scale (float) – the scale in arcsec/pixel of the instrument

  • n (float) – Sersic index of the galaxy

  • ellip (float) – ellipticity of the galaxy

  • theta (float) – position angle of the galaxy

  • extend (float) – Size of the image in units of r_eff

  • ra (float, str) – RA of the source in degree, default 0.0

  • dec (float, str) – DEC of the source in degree, default 0.0

Returns:

src

Return type:

scopesim.Source