USRA-STI / gdt-fermi

Gamma-ray Data Tools - Fermi mission components
Apache License 2.0
2 stars 3 forks source link

Add MET conversion for Time.py #7

Open CoriFletcher-USRA opened 1 year ago

CoriFletcher-USRA commented 1 year ago

It would be nice to have an MET conversion in the Fermi time.py file.

AdamGoldstein-USRA commented 1 year ago

Can you elaborate? We use astropy.Time to perform time conversions, and the Fermi MET is defined as a special epoch within time.py. For example, you can do the following to get the Fermi MET for the current time: from gdt.missions.fermi.time import Time Time.now().fermi

Similarly, a Time object can be created with any other time, and as long as you've done the above import, the conversion to fermi using .fermi is available to you.

AdamGoldstein-USRA commented 3 months ago

@CoriFletcher-USRA can this be closed?