gammapy.astro.population.add_observed_parameters(table, obs_pos=None)[source]

Add observable parameters (such as sky position or distance).

Input table columns: x, y, z, extension, luminosity

Output table columns: distance, glon, glat, flux, angular_extension

Position of observer in cartesian coordinates. Center of galaxy as origin, x-axis goes trough sun.

table : Table

Input table

obs_pos : tuple or None

Observation position (X, Y, Z) in Galactocentric coordinates (default: Earth)

table : Table

Modified input table with columns added