Skip to content

Commit 8baf794

Browse files
committed
modify extension date change
1 parent 28014bc commit 8baf794

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

gnss_lib_py/utils/ephemeris_downloader.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,9 @@ def _get_rinex_extension(timestamp):
999999
"""Get file extension of rinex file based on timestamp.
10001000
10011001
GPS and Glonass Rinex files switched from .Z to .gz on
1002-
December 1, 2020 [15]_.
1002+
December 1, 2020 [5]_.
1003+
1004+
But brdc actually switched on November 30, 2020.
10031005
10041006
Parameters
10051007
----------
@@ -1013,11 +1015,11 @@ def _get_rinex_extension(timestamp):
10131015
10141016
References
10151017
----------
1016-
.. [15] https://cddis.nasa.gov/Data_and_Derived_Products/GNSS/daily_30second_data.html
1018+
.. [5] https://cddis.nasa.gov/Data_and_Derived_Products/GNSS/daily_30second_data.html
10171019
10181020
"""
10191021
# switched from .Z to .gz compression format on December 1st, 2020
1020-
if timestamp >= datetime(2020, 12, 1, tzinfo=timezone.utc).date():
1022+
if timestamp >= datetime(2020, 11, 30, tzinfo=timezone.utc).date():
10211023
extension = '.gz'
10221024
else:
10231025
extension = '.Z'

0 commit comments

Comments
 (0)