Skip to content

Commit d6a9b2b

Browse files
committed
- added a sample case (doy178/2025) for JPL GDGPS without code bias.
1 parent d4894d9 commit d6a9b2b

File tree

1 file changed

+29
-13
lines changed

1 file changed

+29
-13
lines changed

samples/test_ppprtcm.py

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
from cssrlib.rtcm import rtcm
2020
from cssrlib.pppssr import pppos
2121
from cssrlib.rinex import rnxdec
22+
from cssrlib.cssrlib import sCType
2223

2324

2425
# Select test case
2526
#
26-
icase = 2
27+
icase = 3
2728

2829
# Start epoch and number of epochs
2930
#
@@ -36,6 +37,8 @@
3637
xyz_ref = [4186704.2262, 834903.7677, 4723664.9337]
3738
file_rtcm = '../data/doy2023-229/idd2023229c.rtc'
3839
file_rtcm_log = '../data/doy2023-229/idd2023229c.log'
40+
gnss = "GE"
41+
cs_mask = 1 << sCType.CLOCK | 1 << sCType.ORBIT | 1 << sCType.CBIAS
3942

4043
elif icase == 2: # JPL GDGPS Mosaic-X5
4144

@@ -46,12 +49,28 @@
4649
xyz_ref = [-3962108.7007, 3381309.5532, 3668678.6648]
4750
file_rtcm = '../data/doy2024-043/JPL32T2043h.rtcm3'
4851
file_rtcm_log = '../data/doy2024-043/JPL32T2043h.log'
52+
gnss = "GE"
53+
cs_mask = 1 << sCType.CLOCK | 1 << sCType.ORBIT | 1 << sCType.CBIAS
54+
55+
elif icase == 3: # JPL GDGPS (w/o code bias) JAVAD DELTA-3S
56+
57+
ep = [2025, 6, 27, 0, 0, 0]
58+
navfile = '../data/doy2025-178/178a_rnx.nav'
59+
# navfile = '../data/doy2025-178/BRD400DLR_S_20251780000_01D_MN.rnx'
60+
obsfile = '../data/doy2025-178/178a_rnx.obs'
61+
xyz_ref = [-3962108.6836, 3381309.5672, 3668678.6720]
62+
# SSRA11JPL0 GPS+GAL orbit+clock corrs
63+
file_rtcm = '../data/doy2025-178/JPL11178a.rtcm3'
64+
file_rtcm_log = '../data/doy2025-178/JPL32T178a.log'
65+
gnss = "GE"
66+
cs_mask = 1 << sCType.CLOCK | 1 << sCType.ORBIT
4967

5068
time = epoch2time(ep)
5169
year = ep[0]
5270
doy = int(time2doy(time))
5371

5472
nep = 900*4
73+
# nep = 300
5574

5675

5776
# Set user reference position
@@ -61,10 +80,10 @@
6180
# Define signals to be processed
6281
#
6382

64-
if icase == 1:
83+
sigs = []
84+
85+
if icase in [1, 2]:
6586

66-
gnss = "GE"
67-
sigs = []
6887
if 'G' in gnss:
6988
sigs.extend([rSigRnx("GC1C"), rSigRnx("GC2W"),
7089
rSigRnx("GL1C"), rSigRnx("GL2W"),
@@ -74,20 +93,17 @@
7493
rSigRnx("EL1C"), rSigRnx("EL7Q"),
7594
rSigRnx("ES1C"), rSigRnx("ES7Q")])
7695

77-
elif icase == 2:
96+
elif icase == 3:
7897

79-
gnss = "GE"
80-
sigs = []
8198
if 'G' in gnss:
82-
sigs.extend([rSigRnx("GC1C"), rSigRnx("GC2W"),
83-
rSigRnx("GL1C"), rSigRnx("GL2W"),
84-
rSigRnx("GS1C"), rSigRnx("GS2W")])
99+
sigs.extend([rSigRnx("GC1W"), rSigRnx("GC2W"),
100+
rSigRnx("GL1W"), rSigRnx("GL2W"),
101+
rSigRnx("GS1W"), rSigRnx("GS2W")])
85102
if 'E' in gnss:
86103
sigs.extend([rSigRnx("EC1C"), rSigRnx("EC7Q"),
87104
rSigRnx("EL1C"), rSigRnx("EL7Q"),
88105
rSigRnx("ES1C"), rSigRnx("ES7Q")])
89106

90-
91107
rnx = rnxdec()
92108
rnx.setSignals(sigs)
93109

@@ -107,7 +123,7 @@
107123
cs.cssrmode = sCSSRTYPE.RTCM3_SSR
108124
cs.inet = 0
109125

110-
if icase == 2: # mask phase-bias for JPL GDGPS
126+
if icase in [2, 3]: # mask phase-bias for JPL GDGPS
111127
cs.mask_pbias = True
112128

113129
if True:
@@ -245,7 +261,7 @@
245261

246262
# Call PPP module with HAS corrections
247263
#
248-
if (cs.lc[0].cstat & 0xe) == 0xe:
264+
if (cs.lc[0].cstat & cs_mask) == cs_mask:
249265
ppp.process(obs, cs=cs)
250266

251267
# Save output

0 commit comments

Comments
 (0)