scopesim_templates.extragalactic.galaxy¶
- scopesim_templates.extragalactic.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=10, dec=-10)¶
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:
- sedstr or Spextrum
- zfloat
redshift of the galaxy
- r_efffloat
effective radius of the galaxy in arcsec, it accepts astropy.units
- amplitudefloat
magnitude or flux of the galaxy, it accepts astropy.units
- filter_curvestr
name of the filter where the magnitude refer to
- pixel_scalefloat
the scale in arcsec/pixel of the instrument
- nfloat
Sersic index of the galaxy
- ellipfloat
ellipticity of the galaxy
- thetafloat
position angle of the galaxy
- extendfloat
Size of the image in units of r_eff
- rafloat, str
RA of the source, default 10
- decfloat, str
DEC of the source, default -10
- Returns:
- srcscopesim.Source