get_sn_scene

Contents

get_sn_scene#

get_sn_scene(model='salt', background='zodi', host={}, **kwargs)[source]#

Get a scene configuration for a supernova model.

Deprecated since version 1.3.1: Use get_scene(source="snia-{model}", ...) instead.

This function generates a dictionary that defines a scene containing a supernova, a background, and a host galaxy. The scene can then be used to generate a simulation.

Parameters:
  • model (str, optional) – The name of the supernova model to use. Can be "salt", "twin" or any other sncosmo SALT source name. Default is "salt".

  • background (str or dict, optional) – The background configuration, see get_scene. Default is "zodi".

  • host (dict, optional) – A dictionary defining the host galaxy. Default is an empty dict.

  • **kwargs – Additional keyword arguments to pass to the supernova model.

Returns:

dict – A dictionary defining the scene, see get_scene.

Warns:

DeprecationWarning – Always, since this function is deprecated in favour of get_scene.