scopesim_templates.extragalactic.galaxy3d¶
- scopesim_templates.extragalactic.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:
- sedstr or Spextrum
SED of the galaxy, it can be a string or a Spextrum object.
- zfloat
Redshift of the galaxy.
- amplitudefloat, u.Quantity
Magnitude or flux of the galaxy. The spectrum will be re-escaled to this value.
- filter_curvestr
Name of the filter where the
amplitudeis measured.- pixel_scalefloat
The scale of the image in arcsec/pixel.
- r_efffloat
Effective radius of the galaxy in arcsec. It accepts astropy.units.
- nfloat
Sersic index of the galaxy.
- ellipfloat
Ellipticity of the galaxy.
- thetafloat
Position angle of the galaxy.
- vmaxfloat
Maximum rotation velocity of the galaxy.
- sigmafloat
Velocity dispersion of the galaxy.
- extendfloat
Size of the image in units of
r_eff.- ngridint
Gridding parameter for creating of the galaxy.
- Returns:
- srcscopesim.Source