|
15 | 15 | "metadata": {}, |
16 | 16 | "outputs": [], |
17 | 17 | "source": [ |
18 | | - "from gnss_lib_py.parsers.android import AndroidDerived2021\n", |
19 | | - "from gnss_lib_py.algorithms.snapshot import solve_wls\n", |
20 | | - "from gnss_lib_py.utils.visualizations import plot_map" |
| 18 | + "import gnss_lib_py as glp" |
21 | 19 | ] |
22 | 20 | }, |
23 | 21 | { |
|
29 | 27 | "source": [ |
30 | 28 | "# load Android Google Challenge data\n", |
31 | 29 | "!wget https://raw.githubusercontent.com/Stanford-NavLab/gnss_lib_py/main/data/unit_test/android_2021/Pixel4XL_derived.csv --quiet -O \"Pixel4XL_derived.csv\"\n", |
32 | | - "derived_data = AndroidDerived2021(\"Pixel4XL_derived.csv\", remove_timing_outliers=False)" |
| 30 | + "derived_data = glp.AndroidDerived2021(\"Pixel4XL_derived.csv\", remove_timing_outliers=False)" |
33 | 31 | ] |
34 | 32 | }, |
35 | 33 | { |
|
47 | 45 | "metadata": {}, |
48 | 46 | "outputs": [], |
49 | 47 | "source": [ |
50 | | - "state_wls = solve_wls(derived_data)" |
| 48 | + "state_wls = glp.solve_wls(derived_data)" |
51 | 49 | ] |
52 | 50 | }, |
53 | 51 | { |
|
65 | 63 | "metadata": {}, |
66 | 64 | "outputs": [], |
67 | 65 | "source": [ |
68 | | - "plot_map(state_wls)" |
| 66 | + "glp.plot_map(state_wls)" |
69 | 67 | ] |
70 | 68 | }, |
71 | 69 | { |
|
83 | 81 | "metadata": {}, |
84 | 82 | "outputs": [], |
85 | 83 | "source": [ |
86 | | - "from gnss_lib_py.parsers.android import AndroidDerived2021\n", |
87 | | - "from gnss_lib_py.algorithms.gnss_filters import solve_gnss_ekf\n", |
88 | | - "from gnss_lib_py.utils.visualizations import plot_map" |
| 84 | + "import gnss_lib_py as glp" |
89 | 85 | ] |
90 | 86 | }, |
91 | 87 | { |
|
97 | 93 | "source": [ |
98 | 94 | "# load Android Google Challenge data\n", |
99 | 95 | "!wget https://raw.githubusercontent.com/Stanford-NavLab/gnss_lib_py/main/data/unit_test/android_2021/Pixel4XL_derived.csv --quiet -O \"Pixel4XL_derived.csv\"\n", |
100 | | - "derived_data = AndroidDerived2021(\"Pixel4XL_derived.csv\", remove_timing_outliers=False)" |
| 96 | + "derived_data = glp.AndroidDerived2021(\"Pixel4XL_derived.csv\", remove_timing_outliers=False)" |
101 | 97 | ] |
102 | 98 | }, |
103 | 99 | { |
|
117 | 113 | }, |
118 | 114 | "outputs": [], |
119 | 115 | "source": [ |
120 | | - "state_ekf = solve_gnss_ekf(derived_data)" |
| 116 | + "state_ekf = glp.solve_gnss_ekf(derived_data)" |
121 | 117 | ] |
122 | 118 | }, |
123 | 119 | { |
|
135 | 131 | "metadata": {}, |
136 | 132 | "outputs": [], |
137 | 133 | "source": [ |
138 | | - "plot_map(state_ekf)" |
| 134 | + "glp.plot_map(state_ekf)" |
139 | 135 | ] |
140 | 136 | }, |
141 | 137 | { |
|
153 | 149 | "metadata": {}, |
154 | 150 | "outputs": [], |
155 | 151 | "source": [ |
156 | | - "from gnss_lib_py.algorithms.residuals import solve_residuals\n", |
157 | | - "from gnss_lib_py.utils.visualizations import plot_metric_by_constellation\n", |
| 152 | + "import gnss_lib_py as glp" |
| 153 | + ] |
| 154 | + }, |
| 155 | + { |
| 156 | + "cell_type": "code", |
| 157 | + "execution_count": null, |
| 158 | + "id": "12285e7e", |
| 159 | + "metadata": {}, |
| 160 | + "outputs": [], |
| 161 | + "source": [ |
| 162 | + "# load Android Google Challenge data\n", |
| 163 | + "!wget https://raw.githubusercontent.com/Stanford-NavLab/gnss_lib_py/main/data/unit_test/android_2021/Pixel4XL_derived.csv --quiet -O \"Pixel4XL_derived.csv\"\n", |
| 164 | + "derived_data = glp.AndroidDerived2021(\"Pixel4XL_derived.csv\", remove_timing_outliers=False)" |
| 165 | + ] |
| 166 | + }, |
| 167 | + { |
| 168 | + "cell_type": "code", |
| 169 | + "execution_count": null, |
| 170 | + "id": "e92db703", |
| 171 | + "metadata": {}, |
| 172 | + "outputs": [], |
| 173 | + "source": [ |
158 | 174 | "galileo_data = derived_data.where(\"gnss_id\",\"galileo\")" |
159 | 175 | ] |
160 | 176 | }, |
|
173 | 189 | "metadata": {}, |
174 | 190 | "outputs": [], |
175 | 191 | "source": [ |
176 | | - "solve_residuals(galileo_data, state_wls, inplace=True)" |
| 192 | + "glp.solve_residuals(galileo_data, state_wls, inplace=True)" |
177 | 193 | ] |
178 | 194 | }, |
179 | 195 | { |
|
191 | 207 | "metadata": {}, |
192 | 208 | "outputs": [], |
193 | 209 | "source": [ |
194 | | - "figs = plot_metric_by_constellation(galileo_data, \"gps_millis\", \"residuals_m\")" |
| 210 | + "figs = glp.plot_metric_by_constellation(galileo_data, \"gps_millis\", \"residuals_m\")" |
195 | 211 | ] |
196 | 212 | } |
197 | 213 | ], |
|
0 commit comments