Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions tecs/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
L1, L2, L5, P1, P2, C1, C5, C2, S1, S2, S5,
SAT_SYS_GLO, SAT_SYS_GEO, SAT_SYS_GPS,
SAT_SYS_MIX,
TIME_SYS_GPS, SAT_SYS_BDS, L6, L7, SAT_SYS_GAL,
C6, C7, LabelError
TIME_SYS_GPS, SAT_SYS_BDS, L6, L7, L8, SAT_SYS_GAL,
C6, C7, C8, LabelError
)
from tecs.rinex.nmutils import (
load_navigation_message,
Expand Down Expand Up @@ -556,7 +556,12 @@ def main():
tec_l2c2 = tec.compute_via_l1_c1(
ds[L2][0], ds[C2][0],
f2)


# - via L8&C8
tec_l8c8 = tec.compute_via_l1_c1(
ds[L8][0], ds[C8][0],
f8)

# - via C1&C5
tec_c1c5 = tec.compute_via_p(
ds[C1][0], ds[C5][0],
Expand Down Expand Up @@ -673,6 +678,7 @@ def main():
tec_c2c7,
tec_c6c7,
tec_l2c2,
tec_l8c8,
)

dc_len = len(data_chunk)
Expand Down
2 changes: 0 additions & 2 deletions tecs/dio/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,10 @@ def write_data(self, sat, chunk):

# all but the date
vals = list(chunk[1:])

if None in vals:
nones = [i for (i, v) in enumerate(vals) if v is None]
for i in nones:
vals[i] = 0

# an output record
rec = None
try:
Expand Down
4 changes: 2 additions & 2 deletions tecs/gtb/tec.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def compute_on_demand_l1_c1(func):
""" """
if CFG.outFileModeText and (
lbl.R_TEC_L1C1 in TEC2CALC or
lbl.R_TEC_L2C2 in TEC2CALC
lbl.R_TEC_L2C2 in TEC2CALC or
lbl.R_TEC_L8C8 in TEC2CALC
):
return func
else:
Expand Down Expand Up @@ -189,7 +190,6 @@ def compute_via_l1_c1(l1, c1, f1):

if not f1:
return None

tec = None

if c1 and l1 and f1:
Expand Down
3 changes: 3 additions & 0 deletions tecs/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
R_TEC_L2C2 = 'tec.l2c2'
R_TEC_ALL.append(R_TEC_L2C2)

R_TEC_L8C8 = 'tec.l8c8'
R_TEC_ALL.append(R_TEC_L8C8)

R_TEC_L2L6 = 'tec.l2l6'
R_TEC_ALL.append(R_TEC_L2L6)

Expand Down
5 changes: 5 additions & 0 deletions tecs/rec.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,9 @@ def __init__(self):
'type': lambda v: float(v),
'fortran': 'F21.3'
},
label.R_TEC_L8C8: {
'format': '{53: 21.3f}',
'type': lambda v: float(v),
'fortran': 'F21.3'
},
}
3 changes: 2 additions & 1 deletion tecs/rinex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ def nav_file(filename):
3.00: Nav3,
3.01: Nav301,
3.02: Nav302,
3.03: Nav303
3.03: Nav303,
3.04: Nav303
}

if version in nav_cls:
Expand Down