pynbody.sph.spectra

Contents

pynbody.sph.spectra#

pynbody.sph.spectra(snap, qty='rho', x1=0.0, y1=0.0, v2=400, nvel=200, v1=None, element='H', ion='I', xy_units=Unit('kpc'), vel_units=Unit('km s**-1'), smooth='smooth', __threaded=False)[source]#

Render an SPH spectrum using a (mass/rho)-weighted ‘scatter’ scheme of all the particles that have a smoothing length within 2 h_sm of the position.

Keyword arguments:

qty (‘rho’): The name of the array within the simulation to render

x1 (0.0): The x-coordinate of the line of sight.

y1 (0.0): The y-coordinate of the line of sight.

v1 (-400.0): The minimum velocity of the spectrum

v2 (400.0): The maximum velocity of the spectrum

nvel (500): The number of resolution elements in spectrum

xy_units (‘kpc’): The units for the x and y axes

smooth: The name of the array which contains the smoothing lengths

(default ‘smooth’)