FoVICRSFrame#

class gammapy.utils.coordinates.FoVICRSFrame[source]#

Bases: BaseCoordinateFrame

FoV coordinate frame aligned on ICRS frame. Centered on origin an ICRS coordinate and aligned on ICRS frame.

Longitudes are reversed.

Attributes:
origin: `~astropy.coordinates.ICRS`

Origin of this frame as an ICRS coordinate

Examples

import astropy.units as u
from astropy.time import Time
from astropy.coordinates import SkyCoord
from gammapy.utils.observers import observatory_locations
from gammapy.utils.coordinates import FoVICRSFrame

location = observatory_locations.get("ctao_north")
obstime = Time("2025-01-01T00:00:00")
origin = SkyCoord(85.63333333, 20.01444444, unit="deg", frame="icrs")

fov_frame = FoVICRSFrame(origin=origin)

crab = SkyCoord(83.63333333, 22.01444444, unit="deg", frame="icrs")
crab.transform_to(fov_frame)

Attributes Summary

default_differential

Default representation for differential data (e.g., velocity)

default_representation

Default representation for position data

frame_attributes

frame_specific_representation_info

Mapping for frame-specific component names

name

origin

A frame attribute

Attributes Documentation

default_differential#

Default representation for differential data (e.g., velocity)

default_representation#

Default representation for position data

frame_attributes = {'origin': <astropy.coordinates.attributes.CoordinateAttribute object>}#
frame_specific_representation_info#

Mapping for frame-specific component names

name = 'fovicrsframe'#
origin#

A frame attribute

No default value

__init__(*args, **kwargs)[source]#
classmethod __new__(*args, **kwargs)#