|
498 | 498 | "outputs": [], |
499 | 499 | "source": [ |
500 | 500 | "# download .sp3 data file\n", |
501 | | - "!wget https://raw.githubusercontent.com/Stanford-NavLab/gnss_lib_py/main/data/unit_test/sp3/grg21553_short.sp3 --quiet -O \"grg21553_short.sp3\"\n", |
| 501 | + "!wget https://raw.githubusercontent.com/Stanford-NavLab/gnss_lib_py/main/data/unit_test/sp3/COD0MGXFIN_20211180000_01D_05M_ORB.SP3 --quiet -O \"COD0MGXFIN_20211180000_01D_05M_ORB.SP3\"\n", |
502 | 502 | "# Specify .sp3 file path to extract precise ephemerides\n", |
503 | | - "sp3_path = \"grg21553_short.sp3\"\n", |
| 503 | + "sp3_path = \"COD0MGXFIN_20211180000_01D_05M_ORB.SP3\"\n", |
504 | 504 | "\n", |
505 | 505 | "# download .clk data file\n", |
506 | | - "!wget https://raw.githubusercontent.com/Stanford-NavLab/gnss_lib_py/main/data/unit_test/clk/grg21553_short.clk --quiet -O \"grg21553_short.clk\"\n", |
| 506 | + "!wget https://raw.githubusercontent.com/Stanford-NavLab/gnss_lib_py/main/data/unit_test/clk/COD0MGXFIN_20211180000_01D_30S_CLK.CLK --quiet -O \"COD0MGXFIN_20211180000_01D_30S_CLK.CLK\"\n", |
507 | 507 | "# Specify .clk file path to extract precise ephemerides\n", |
508 | | - "clk_path = \"grg21553_short.clk\"" |
| 508 | + "clk_path = \"COD0MGXFIN_20211180000_01D_30S_CLK.CLK\"" |
509 | 509 | ] |
510 | 510 | }, |
511 | 511 | { |
|
548 | 548 | "outputs": [], |
549 | 549 | "source": [ |
550 | 550 | "# Update derived_data class with satellite information computed via precise ephemerides\n", |
551 | | - "derived_gps_glonass = derived_data.where(\"gnss_id\",(\"gps\",\"glonass\"))\n", |
552 | | - "derived_multi_gnss = glp.add_sv_states_sp3_and_clk(derived_gps_glonass, sp3_path, \\\n", |
| 551 | + "# derived_gps_glonass = derived_data.where(\"gnss_id\",(\"gps\",\"glonass\"))\n", |
| 552 | + "derived_multi_gnss = glp.add_sv_states_sp3_and_clk(derived_data, sp3_path, \\\n", |
553 | 553 | " clk_path, verbose = False)" |
554 | 554 | ] |
555 | 555 | }, |
|
562 | 562 | "source": [ |
563 | 563 | "# Check that all the desired fields related to satellite information have useful\n", |
564 | 564 | "# information, and norm of computed satellite position matches the altitude of GNSS constellation\n", |
565 | | - "sat_alt = np.linalg.norm(np.transpose([derived_multi_gnss[SV_KEYS[0]][0:2],\n", |
566 | | - " derived_multi_gnss[SV_KEYS[1]][0:2], \n", |
567 | | - " derived_multi_gnss[SV_KEYS[2]][0:2]]), axis=1)\n", |
568 | | - "print('Distance of two satellites from the center of the Earth (expected around 26000000 m):', derived_multi_gnss[\"gnss_id\"][0:2], sat_alt)\n", |
569 | | - "print(\"Extracted values for same satellites: \")\n", |
570 | | - "for sv in SV_KEYS:\n", |
571 | | - " print(sv, ':', derived_multi_gnss[sv][0:2])" |
| 565 | + "sat_alt = np.linalg.norm(derived_multi_gnss[[\"x_sv_m\",\"y_sv_m\",\"z_sv_m\"],9:12],axis=0)\n", |
| 566 | + "print('Distance of two satellites from the center of the Earth (expected around 26000000 m)')\n", |
| 567 | + "print(\"Three GPS SVs calculated to be at:\", sat_alt,\"\\n\")\n", |
| 568 | + "\n", |
| 569 | + "print(\"Small section of calculated positions:\")\n", |
| 570 | + "print(derived_multi_gnss.copy(cols=[2,3,4,5],rows=[\"gnss_id\"]+SV_KEYS))" |
572 | 571 | ] |
573 | 572 | }, |
574 | 573 | { |
|
0 commit comments