Timezone in get_body()

21 views
Skip to first unread message

Bravo Esperto

unread,
Mar 5, 2024, 7:48:55 AMMar 5
to astropy-dev

Hi!
It’s not so clear for me: should I use local time or UTC time for Time of observation in astropy.coordinates.get_body() when I point out my location?

Example: get coordinates of Jupiter, Mexico City at local time 2024-02-29 at 18:00 (UTC-6)

body = ‘jupiter’

lon = -99.133209
lat = 19.432608
location = EarthLocation.from_geodetic(lon, lat)

loc_time = 2024-02-29T18:00:00.000 (UTC/GMT -6 hours)
utc_time = 2024-03-01T00:00:00.000

What is correct:
get_body(body , loc_time , location)
or
get_body(body , utc_time , location)
?

Reply all
Reply to author
Forward
0 new messages