synthesizer.parametric.galaxy

Classes

class synthesizer.parametric.galaxy.Galaxy(stars=None, name='parametric galaxy', black_holes=None, redshift=None, centre=None, **kwargs)[source]

A class defining parametric galaxy objects

get_Q(grid)[source]

Return the ionising photon luminosity (log10_specific_ionising_lum) for a given SFZH.

Parameters:

grid (object, Grid) – The SPS Grid object from which to extract spectra.

Returns:

Log of the ionising photon luminosity over the grid dimensions

get_data_cube(resolution, fov, lam, stellar_spectra=None, blackhole_spectra=None, quantity='lnu')[source]

Make a SpectralCube from an Sed.

Data cubes are calculated by smoothing spectra over the component morphology. The Sed used is defined by <component>_spectra.

If multiple components are requested they will be combined into a single output data cube.

NOTE: Either npix or fov must be defined.

Parameters:
  • resolution (Quantity, float) – The size of a pixel. (Ignoring any supersampling defined by psf_resample_factor)

  • fov – float The width of the image in image coordinates.

  • lam (unyt_array, float) – The wavelength array to use for the data cube.

  • stellar_spectra (string) – The stellar spectra key to make into a data cube.

  • blackhole_spectra (string) – The black hole spectra key to make into a data cube.

  • quantity (str) – The Sed attribute/quantity to sort into the data cube, i.e. “lnu”, “llam”, “luminosity”, “fnu”, “flam” or “flux”.

Returns:

SpectralCube

The spectral data cube object containing the derived data cube.