scopesim_templates.extragalactic.galaxies.galaxy3d#
- scopesim_templates.extragalactic.galaxies.galaxy3d(sed, z=0, amplitude=15, filter_curve='g', pixel_scale=0.1, r_eff=10, n=4, ellip=0.1, theta=0, vmax=100, sigma=100, extend=2, ngrid=10)#
Create a simplified 3D map of a galaxy with flux, rotation velocity and velocity dispersion.
The maps are binned according to the
ngridparameter, higherngridwill create finer binned fields, but it may increase the computation time.The
ngridparameter does not specify the number of bins. A ngrid=10 will create around 40 independent regions whilst angridof 100 will create around 2300 regions.This function is ideal for spectroscopy
- Parameters:
sed (str or Spextrum) – SED of the galaxy, it can be a string or a Spextrum object.
z (float) – Redshift of the galaxy.
amplitude (float, u.Quantity) – Magnitude or flux of the galaxy. The spectrum will be re-escaled to this value.
filter_curve (str) – Name of the filter where the
amplitudeis measured.pixel_scale (float) – The scale of the image in arcsec/pixel.
r_eff (float) – Effective radius of the galaxy in arcsec. It accepts astropy.units.
n (float) – Sersic index of the galaxy.
ellip (float) – Ellipticity of the galaxy.
theta (float) – Position angle of the galaxy.
vmax (float) – Maximum rotation velocity of the galaxy.
sigma (float) – Velocity dispersion of the galaxy.
extend (float) – Size of the image in units of
r_eff.ngrid (int) – Gridding parameter for creating of the galaxy.
- Returns:
src
- Return type:
scopesim.Source