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
- HEASoft provided by HEASARC at NASA GSFC.
- Python
- numpy
- Cython
Release History
- 2021.06.30 python-atFunctions-0.2.1.tar.gz
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)