Note

You are not reading the most up to date version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

skycoord_from_table

gammapy.catalog.skycoord_from_table(table)[source]

Make SkyCoord from lon, lat columns in Table.

This is a convenience function similar to guess_from_table, but with the column names we usually use.

TODO: I’m not sure if it’s a good idea to use this because it’s not always clear which positions are taken.