slicersim.scene.host

slicersim.scene.host#

Scene: host module.

Host is the SceneElement describing the host galaxy of the observed target: a spatially extended source, modeled as a spectrum (spectral model) multiplied by a 2D surface-brightness profile (spatial model).

The model is named "spatial:spectral", e.g. "sersic:bb-5000":

  • spatial models: "sersic" (analytic profile, see get_sersic_profile) or an NGC galaxy name, e.g. "ngc0628" (its r-band image, see GalaxySpatialModel);

  • spectral models: "bb" or "blackbody", optionally followed by the temperature in K ("bb-5000", see get_blackbody_flux), or an NGC galaxy name, e.g. "ngc0628" (its spectral template, see generic_get_flux).

A bare NGC name, e.g. "ngc0628", is understood as "ngc0628:ngc0628" (image and spectrum of the same galaxy). NGC names are case insensitive and NGC data require the lazuli_astrosim_data package.

Use get_host_config to get a default configuration for a model name, and Host.from_config (or Host.from_modelname) to build the host.

Classes

Host

Structured background representing the host galaxy of the observed target.

Functions

get_host_config

Get a default host configuration for a given model name.

parse_modelname

Split a host model name into its spatial and spectral models.