add_observed_parameters

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 through sun.

Parameters
tableTable

Input table

obs_postuple or None

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

Returns
tableTable

Modified input table with columns added