python-atFunctions

Description

A python wrapper for “atFunctions”, which is a comprehensive library of attitude or orbit related routines developed at ISAS and incorporated into HEASoft package.

Contributors

python-atFunctions is originally developed by Satoshi NAKAHIRA, Marina OHARA, Ryoko YOSHINO of ISAS/JAXA and Eiji HONJOH of AstroArts Inc.

If any problems please contact: darts-admin[AT]ml.isas.jaxa.jp

Requirements

Release History

Install

Build

python setup.py build_ext

Test

python setup.py build_ext --inplace
python test.py

Install

pip install .

Examples

Import Libraries

import numpy as np
import atFunctions as pyat
import os
import astropy.io.fits as pyfits

convert MJD (Modifies Julian Date) to MET (Mission Elapsed Time)

MJD_BASE=51544.0 # 2000-01-01T00:00.00
mjd = np.random.rand(10) * 3000 + 55000
pyat.atMissionTimeInit(os.path.join(os.environ['HEADAS'], 'refdata', 'lepsec.fits'))
mission = pyat.atMJDToMission(MJD_BASE, mjd)
print(mission)

Last Modified: 22 October 2021