make_base_catalog_galactic

gammapy.astro.population.make_base_catalog_galactic(n_sources, rad_dis='YK04', vel_dis='H05', max_age=<Quantity 1000000. yr>, spiralarms=True, n_ISM=<Quantity 1. 1 / cm3>, random_state='random-seed')[source]

Make a catalog of Galactic sources, with basic source parameters.

Choose a radial distribution, a velocity distribution, the number of pulsars n_pulsars, the maximal age max_age[years] and the fraction of the individual morphtypes. There’s an option spiralarms. If set on True a spiralarm modelling after Faucher&Kaspi is included.

max_age and n_sources effectively correspond to s SN rate: SN_rate = n_sources / max_age

Parameters:

n_sources : int

Number of sources to simulate.

rad_dis : callable

Radial surface density distribution of sources.

vel_dis : callable

Proper motion velocity distribution of sources.

max_age : Quantity

Maximal age of the source

spiralarms : bool

Include a spiralarm model in the catalog.

n_ISM : Quantity

Density of the interstellar medium.

random_state : {int, ‘random-seed’, ‘global-rng’, RandomState}

Defines random number generator initialisation. Passed to get_random_state.

Returns:

table : Table

Catalog of simulated source positions and proper velocities.