make_catalog_random_positions_cube

gammapy.astro.population.make_catalog_random_positions_cube(size=100, dimension=3, dmax=10, random_state='random-seed')[source]

Make a catalog of sources randomly distributed on a line, square or cube.

TODO: is this useful enough for general use or should we hide it as an
internal method to generate test datasets?
Parameters:
size : int, optional

Number of sources

dimension : int, optional

Number of dimensions

dmax : int, optional

Maximum distance in pc.

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

Defines random number generator initialisation. Passed to get_random_state.

Returns:
catalog : Table

Source catalog with columns: