DARTS

  • FAQ
  • Request
  • Contact
For the general public (Japanese only)
JPEN
  • Top Page
  • Support Tools
  • python-atFunctions

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)


DARTS
  • C SODA ISAS/JAXA
  • ISAS
  • JAXA

TEST-Version DARTS is operated by Center for Science-satellite Operation and Data Archive (C-SODA) opens in new window,
Institute of Institute of Space and Astronautical Science, Japan Aerospace Exploration Agency