Changeset 11215 in ntrip for trunk/BNC/tests
- Timestamp:
- Nov 19, 2026, 11:04:10 PM (2 weeks ago)
- Location:
- trunk/BNC/tests
- Files:
-
- 13 added
- 2 edited
-
README.md (modified) (1 diff)
-
cases/eph_out_of_range (added)
-
cases/eph_out_of_range/case.json (added)
-
cases/eph_out_of_range/expected (added)
-
cases/eph_out_of_range/expected/BRDC00WRD_S_20263220000_01D_MN.rnx.gz (added)
-
cases/eph_out_of_range/expected/UploadEph.log.gz (added)
-
cases/eph_out_of_range/expected/upload_ephsats.txt.gz (added)
-
cases/upload_eph_vote (added)
-
cases/upload_eph_vote/case.json (added)
-
cases/upload_eph_vote/expected (added)
-
cases/upload_eph_vote/expected/UploadEph.log.gz (added)
-
data/eph_g39_261118_6min.raw (added)
-
data/eph_vote_261118_20min.raw (added)
-
tools/bncraw.py (modified) (3 diffs)
-
tools/mk_eph_g39.py (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/tests/README.md
r11214 r11215 128 128 `upload_raw` (raw forwarding to RINEX nav). `upload_rtnet_rtcm` encodes the same input to RTCM-SSR 129 129 (message numbers 1057-1068, 1240-1270) and decodes it again. 130 `upload_eph_vote` replays the ephemerides of 89 uploader input streams 131 (`data/eph_vote_261118_20min.raw`, 18 Nov 2026 17:43-18:03, BCEP00BKG0 132 removed) and compares the log with the majority vote replacements 133 (e.g. R06/R19/R20 Bn = 1 from RIO200ARG0); the uploaded stream depends on 134 the wall-clock timing and is not compared. `eph_out_of_range` replays 6 min of 135 the same input with a G39 copy of the G24 ephemerides of 3 stations 136 (`tools/mk_eph_g39.py`): the G39 data set is logged once as RINEX record, the 137 RINEX navigation file and the uploaded stream (`bncraw.py ephsats`) have no G39. 130 138 * SSR decoding (`ssr_*`): 3 min slices of real streams replayed through 131 139 `03_BrdcCorr.bnc`. They compare the `.ssr` files and the `BNC_DEBUG_SSR` -
trunk/BNC/tests/tools/bncraw.py
r11130 r11215 10 10 slice <raw> <out> [options] cut a time window / subset of stations 11 11 crs <raw> decode RTCM 1300/1301/1302 (CRS messages) 12 ephsats <raw> satellite IDs of the ephemeris messages 12 13 """ 13 14 … … 246 247 247 248 249 EPH_SYS = {"1019": ("G", 6), "1020": ("R", 6), "1041": ("I", 6), "1042": ("C", 6), 250 "1044": ("J", 4), "1045": ("E", 6), "1046": ("E", 6)} 251 252 253 def cmd_ephsats(args): 254 """Satellite IDs of the ephemeris messages per stream and message type.""" 255 sats = collections.OrderedDict() 256 framers = {} 257 for t, sta, fmt, data in read_chunks(args.input): 258 for p in framers.setdefault(sta, Rtcm3Framer()).feed(data): 259 mt = msg_type(p) 260 if mt in EPH_SYS: 261 sy, nb = EPH_SYS[mt] 262 b = BitReader(p) 263 b.u(12) 264 sats.setdefault((sta, mt), set()).add("%s%02d" % (sy, b.u(nb))) 265 for (sta, mt), s in sorted(sats.items()): 266 print("%s %s %s" % (sta, mt, " ".join(sorted(s)))) 267 268 248 269 def main(): 249 270 ap = argparse.ArgumentParser(description=__doc__, … … 269 290 p.set_defaults(func=cmd_crs) 270 291 292 p = sub.add_parser("ephsats", help="satellite IDs of the ephemeris messages") 293 p.add_argument("input") 294 p.set_defaults(func=cmd_ephsats) 295 271 296 args = ap.parse_args() 272 297 args.func(args)
Note:
See TracChangeset
for help on using the changeset viewer.
