Code Sample, a minimal, complete, and verifiable piece of code
# Your code here
from pyorbital.orbital import Orbital
from datetime import datetime
tlefile = "./aws_2022.tle"
aws1 = Orbital("AWS-1", tle_file=tlefile)
dtobj = datetime(2022, 3, 9, 7, 30)
aws1.get_lonlatalt(dtobj)
Problem description
get_last_an_time does not work with a datetime object as input, as otherwise indicated in the documentation. It seem to require a numpy datetime64 object instead?
If mysat is my Orbital object for a given platform name and TLE file, and dtobjis a datetime object (my utc time) then:
mysat.get_last_an_time(dtobj) does not work! See below Traceback.
But mysat.get_last_an_time(np.datetime64(dtobj)) works.
Expected Output
Method should just work providing a datetime object
Code Sample, a minimal, complete, and verifiable piece of code
Problem description
get_last_an_time
does not work with a datetime object as input, as otherwise indicated in the documentation. It seem to require a numpy datetime64 object instead?If
mysat
is myOrbital
object for a given platform name and TLE file, anddtobj
is a datetime object (my utc time) then:mysat.get_last_an_time(dtobj)
does not work! See below Traceback.But
mysat.get_last_an_time(np.datetime64(dtobj))
works.Expected Output
Method should just work providing a datetime object
Actual Result, Traceback if applicable
Versions of Python, package at hand and relevant dependencies
Thank you for reporting an issue !