|
21 | 21 | import autorino.common as arocmn |
22 | 22 | import autorino.cfglog as arologcfg |
23 | 23 |
|
24 | | -import rinexmod |
| 24 | +#import rinexmod |
25 | 25 | # new rinexmod v4 import |
26 | | -# import rinexmod.api as rimo_api |
| 26 | +import rinexmod.api as rimo_api |
| 27 | +import rinexmod.classes as rimo_cls |
27 | 28 | # old rinexmod import |
28 | | -from rinexmod import rinexmod_api as rimo_api |
| 29 | +#from rinexmod import rinexmod_api as rimo_api |
29 | 30 |
|
30 | 31 | from geodezyx import utils, conv |
31 | 32 |
|
@@ -851,11 +852,11 @@ def updt_epotab_rnx(self, use_rnx_filename_only=False, update_epoch_range=True): |
851 | 852 |
|
852 | 853 | for irow, row in self.table.iterrows(): |
853 | 854 | if not use_rnx_filename_only: |
854 | | - rnx = rinexmod.rinexfile.RinexFile(row["fpath_inp"]) |
| 855 | + rnx = rimo_cls.RinexFile(row["fpath_inp"]) |
855 | 856 | epo_srt = rnx.start_date |
856 | 857 | epo_end = rnx.end_date |
857 | 858 | else: |
858 | | - epo_srt, epo_end, _ = rinexmod.rinexfile.dates_from_rinex_filename( |
| 859 | + epo_srt, epo_end, _ = rimo_api.dates_from_rinex_filename( |
859 | 860 | row["fpath_inp"] |
860 | 861 | ) |
861 | 862 |
|
@@ -2518,7 +2519,7 @@ def mono_rinexmod( |
2518 | 2519 | not self.table.loc[irow, "epoch_srt"] |
2519 | 2520 | or not self.table.loc[irow, "epoch_end"] |
2520 | 2521 | ): |
2521 | | - epo_srt_ok, epo_end_ok = rinexmod.rinexfile.dates_from_rinex_filename( |
| 2522 | + epo_srt_ok, epo_end_ok = rimo_api.dates_from_rinex_filename( |
2522 | 2523 | frnxmod |
2523 | 2524 | ) |
2524 | 2525 | self.table.loc[irow, "epoch_srt"] = epo_srt_ok |
@@ -2818,7 +2819,7 @@ def mono_guess_rnx(self, irow, io="out", shortname=False): |
2818 | 2819 | epo_end = epo_end.replace(tzinfo=None) |
2819 | 2820 |
|
2820 | 2821 | # Determine the file period string based on the epoch range |
2821 | | - prd_str = rinexmod.rinexfile.file_period_from_timedelta(epo_srt, epo_end)[0] |
| 2822 | + prd_str = rimo_api.file_period_from_timedelta(epo_srt, epo_end)[0] |
2822 | 2823 |
|
2823 | 2824 | # Generate the RINEX file name using site and session information |
2824 | 2825 | if not shortname: |
|
0 commit comments