sky_to_fov

gammapy.utils.coordinates.sky_to_fov(lon, lat, lon_pnt, lat_pnt)[source]

Make a transformation from sky coordinates to field-of-view coordinates.

Parameters:
lon : array_like

Sky longitude coordinate to be transformed, in degrees

lat : array_like

Sky latitude coordinate to be transformed, in degrees

lon_pnt : array_like

Longitude coordinate of the pointing position, in degrees

lat_pnt : array_like

Latitude coordinate of the pointing position, in degrees

Returns:
lon_t : array_like

Field-of-view longitude coordinate, in degrees

lat_t : array_like

Field-of-view latitude coordinate, in degrees