Skip to content

Commit

Permalink
Updating epoch to astropy.time.Time (#114)
Browse files Browse the repository at this point in the history
* Updating epoch to astropy time

* importing astropy.time

* Update xrtpy/util/time.py

Co-authored-by: Will Barnes <[email protected]>

Co-authored-by: Nick Murphy <[email protected]>

Co-authored-by: Nick Murphy <[email protected]>
  • Loading branch information
joyvelasquez and namurphy authored Jan 20, 2023
1 parent b3cf505 commit 963dfed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xrtpy/util/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"epoch",
]

from datetime import datetime, timedelta
import astropy.time

from datetime import timedelta

# Hinode-XRT mission elapsed time "Epoch" is Sept 22, 2006 21:36:00.
epoch = datetime(year=2006, month=9, day=22, hour=21, minute=36, second=0)
epoch = astropy.time.Time("2006-09-22 21:36:00")


def xrt_data_time_to_dt(data_time, epoch):
Expand Down

0 comments on commit 963dfed

Please sign in to comment.