Skip to content

Commit a09cb6a

Browse files
committed
add smartloc parser tutorial
1 parent cd7865a commit a09cb6a

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

notebooks/tutorials/parsers.ipynb

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,65 @@
485485
" print(sv, ':', derived_multi_gnss[sv][0:2])"
486486
]
487487
},
488+
{
489+
"cell_type": "markdown",
490+
"id": "95e58b71",
491+
"metadata": {},
492+
"source": [
493+
"# TU Chemnitz SmartLoc\n",
494+
"This tutorial shows how to load data from TU Chemnitz's [smartLoc GNSS Dataset](https://www.tu-chemnitz.de/projekt/smartLoc/gnss_dataset.html.en#Datasets)."
495+
]
496+
},
497+
{
498+
"cell_type": "code",
499+
"execution_count": null,
500+
"id": "714dbb21",
501+
"metadata": {},
502+
"outputs": [],
503+
"source": [
504+
"import gnss_lib_py as glp"
505+
]
506+
},
507+
{
508+
"cell_type": "code",
509+
"execution_count": null,
510+
"id": "b369035d",
511+
"metadata": {},
512+
"outputs": [],
513+
"source": [
514+
"# download cropped SmartLoc data file\n",
515+
"!wget https://raw.githubusercontent.com/Stanford-NavLab/gnss_lib_py/main/data/unit_test/tu_chemnitz_berlin_1_raw.csv --quiet -O \"smart_loc.csv\"\n",
516+
" \n",
517+
"# load smartLoc data into NavData object\n",
518+
"smart_loc_data = glp.SmartLocRaw(\"smart_loc.csv\")"
519+
]
520+
},
521+
{
522+
"cell_type": "code",
523+
"execution_count": null,
524+
"id": "4dd67679",
525+
"metadata": {},
526+
"outputs": [],
527+
"source": [
528+
"# plot the pseudorange over time of each individual satellite\n",
529+
"# SBAS 120 is the outlier with its larger orbit\n",
530+
"fig = glp.plot_metric(smart_loc_data, \"gps_millis\",\"raw_pr_m\", groupby=\"sv_id\")"
531+
]
532+
},
533+
{
534+
"cell_type": "code",
535+
"execution_count": null,
536+
"id": "fe8d92d7",
537+
"metadata": {
538+
"scrolled": true
539+
},
540+
"outputs": [],
541+
"source": [
542+
"# show the ground truth smartLoc data on a map\n",
543+
"fig = glp.plot_map(smart_loc_data)\n",
544+
"fig.show()"
545+
]
546+
},
488547
{
489548
"cell_type": "markdown",
490549
"id": "eb016e74",

0 commit comments

Comments
 (0)