PointingInfo

class gammapy.data.PointingInfo(table)[source]

Bases: object

IACT array pointing info.

Data format specification: POINTING extension

This class has many cached properties. Should be used as read-only.

Parameters:

table : Table

Table (with meta header info) on pointing

Examples

>>> from gammapy.data import PointingInfo
>>> pointing_info = PointingInfo.read('$GAMMAPY_EXTRA/test_datasets/hess_event_list.fits')
>>> print(pointing_info)

Attributes Summary

altaz ALT / AZ position from table (SkyCoord)
altaz_frame ALT / AZ frame (AltAz).
duration Pointing table duration (TimeDelta).
location Observatory location (EarthLocation).
radec RA / DEC position from table (SkyCoord)
time Time array (Time)
time_ref Time reference (Time)

Methods Summary

read(filename[, hdu]) Read PointingInfo table from file.

Attributes Documentation

altaz

ALT / AZ position from table (SkyCoord)

altaz_frame

ALT / AZ frame (AltAz).

duration

Pointing table duration (TimeDelta).

The time difference between the first and last entry.

location

Observatory location (EarthLocation).

radec

RA / DEC position from table (SkyCoord)

time

Time array (Time)

time_ref

Time reference (Time)

Methods Documentation

classmethod read(filename, hdu=None)[source]

Read PointingInfo table from file.

Parameters:

filename : str

File name

hdu : int or str

HDU number or name

Returns:

pointing_info : PointingInfo

Pointing info object