Skip to content

Commit 3067d54

Browse files
committed
- added nsat in output.
- changed prn selection for QZSS PVTS.
1 parent 14374cb commit 3067d54

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

samples/test_sbas.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# Select test case
2222
#
23-
dataset = 1
23+
dataset = 2
2424

2525
# Start epoch and number of epochs
2626
#
@@ -40,7 +40,8 @@
4040
obsfile = '../data/doy2025-046/046r_rnx.obs' # mosaic-X5
4141
file_sbas = '../data/doy2025-046/046r_sbas.txt'
4242
xyz_ref = [-3962108.6836, 3381309.5672, 3668678.6720]
43-
prn_ref = [193, 202] # satellite PRN for SBAS correction
43+
# prn_ref = [193, 202] # satellite PRN for SBAS correction
44+
prn_ref = [199]
4445
sbas_type = 1 # L1: 0, L5: 1
4546
nf = 2
4647

@@ -235,20 +236,22 @@
235236
# nsat[ne] = std.nsat
236237

237238
nav.fout.write("{} {:14.4f} {:14.4f} {:14.4f} "
238-
"ENU {:7.3f} {:7.3f} {:7.3f}, 2D {:6.3f}, mode {:1d}\n"
239+
"ENU {:7.3f} {:7.3f} {:7.3f}, 2D {:6.3f}, mode {:1d}, "
240+
"nsat {:1d}\n"
239241
.format(time2str(obs.t),
240242
sol[0], sol[1], sol[2],
241243
enu[ne, 0], enu[ne, 1], enu[ne, 2],
242244
np.sqrt(enu[ne, 0]**2+enu[ne, 1]**2),
243-
smode[ne]))
245+
smode[ne], std.nsat))
244246

245247
# Log to standard output
246248
#
247-
stdout.write('\r {} ENU {:7.3f} {:7.3f} {:7.3f}, 2D {:6.3f}, mode {:1d}'
249+
stdout.write("\r {} ENU {:7.3f} {:7.3f} {:7.3f}, 2D {:6.3f}, "
250+
"mode {:1d}, nsat {:1d}"
248251
.format(time2str(obs.t),
249252
enu[ne, 0], enu[ne, 1], enu[ne, 2],
250253
np.sqrt(enu[ne, 0]**2+enu[ne, 1]**2),
251-
smode[ne]))
254+
smode[ne], std.nsat))
252255

253256
# Get new epoch, exit after last epoch
254257
#
@@ -270,8 +273,8 @@
270273
nav.fout.close()
271274

272275
fig_type = 1
273-
ylim_h = 10.0
274-
ylim_v = 12.0
276+
ylim_h = 4.0
277+
ylim_v = 6.0
275278

276279
idx2 = np.where(smode == 2)[0]
277280
idx1 = np.where(smode == 1)[0]

0 commit comments

Comments
 (0)