File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import os
22import numpy as np
3- from datetime import datetime
3+ from datetime import datetime , timezone
44
55from .gps_time import GPSTime
66from .constants import SECS_IN_YEAR
@@ -72,7 +72,7 @@ def load_cors_station_positions(cache_dir):
7272 return np .load (f , allow_pickle = True ).item () # pylint: disable=unexpected-keyword-arg
7373
7474
75- def get_station_position (station_id , cache_dir = '/tmp/gnss/' , time = GPSTime .from_datetime (datetime .utcnow ( ))):
75+ def get_station_position (station_id , cache_dir = '/tmp/gnss/' , time = GPSTime .from_datetime (datetime .now ( timezone . utc ))):
7676 cors_station_positions_dict = load_cors_station_positions (cache_dir )
7777 epoch , pos , vel = cors_station_positions_dict [station_id ]
7878 return ((time - epoch )/ SECS_IN_YEAR )* np .array (vel ) + np .array (pos )
You can’t perform that action at this time.
0 commit comments