PointingInfo¶
-
class
gammapy.data.
PointingInfo
(table)[source]¶ Bases:
object
IACT array pointing info.
Data format specification: POINTING
- Parameters
- table
Table
Table (with meta header info) on pointing
- table
Examples
>>> from gammapy.data import PointingInfo >>> pointing_info = PointingInfo.read('$GAMMAPY_DATA/tests/pointing_table.fits.gz') >>> print(pointing_info)
Note: In order to reproduce the example you need the tests datasets folder. You may download it with the command
gammapy download datasets --tests --out $GAMMAPY_DATA
Attributes Summary
ALT / AZ position computed from RA / DEC (
SkyCoord
).ALT / AZ frame (
AltAz
).ALT / AZ position from table (
SkyCoord
).Pointing table duration (
TimeDelta
).Observatory location (
EarthLocation
).RA / DEC position from table (
SkyCoord
).Time array (
Time
).Time reference (
Time
).Methods Summary
altaz_interpolate
(time)Interpolate pointing for a given time.
read
(filename[, hdu])Read
PointingInfo
table from file.Attributes Documentation
-
duration
¶ Pointing table duration (
TimeDelta
).The time difference between the first and last entry.
-
location
¶ Observatory location (
EarthLocation
).
Methods Documentation
-
classmethod
read
(filename, hdu='POINTING')[source]¶ Read
PointingInfo
table from file.- Parameters
- filenamestr
File name
- hduint or str
HDU number or name
- Returns
- pointing_info
PointingInfo
Pointing info object
- pointing_info