FoVAltAzFrame#

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

Bases: BaseCoordinateFrame

FoV coordinate frame. Centered on origin and aligned on AltAz frame at location and obstime.

Longitudes are reversed.

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

Origin of this frame as an Altaz coordinate

obstime: `~astropy.time.Time`

Observation time

location: `~astropy.coordinates.EarthLocation`

Location of the telescope/instrument/observatory

Examples

import astropy.units as u
from astropy.time import Time
from astropy.coordinates import AltAz, SkyCoord
from gammapy.utils.observers import observatory_locations
from gammapy.utils.coordinates import FoVAltAzFrame

location = observatory_locations.get("ctao_north")
obstime = Time("2025-01-01T00:00:00")
origin = AltAz(alt=80*u.deg, az=172*u.deg, location=location, obstime=obstime)

fov_frame = FoVAltAzFrame(origin=origin, location=location, obstime=obstime)

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

location

A frame attribute

name

obstime

A frame attribute

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 = {'location': <astropy.coordinates.attributes.EarthLocationAttribute object>, 'obstime': <astropy.coordinates.attributes.TimeAttribute object>, 'origin': <astropy.coordinates.attributes.CoordinateAttribute object>}#
frame_specific_representation_info#

Mapping for frame-specific component names

location#

A frame attribute

No default value

name = 'fovaltazframe'#
obstime#

A frame attribute

No default value

origin#

A frame attribute

No default value

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