Skip to content

Commit

Permalink
Fixed an error in a notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
alinnman committed Jan 23, 2025
1 parent 5262074 commit a810a65
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions notebook_sea.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"\n",
"# Importing Python libraries\n",
"from time import time\n",
"from starfix import Sight, SightTrip, get_representation, get_google_map_string, LatLon,\\\n",
"from starfix import Sight, SightTrip, get_representation, LatLonGeodetic,\\\n",
" IntersectError"
]
},
Expand All @@ -26,7 +26,7 @@
"outputs": [],
"source": [
"# Estimated (DR) position at start\n",
"s1LatLon = LatLon (59, 18)\n",
"s1LatLon = LatLonGeodetic (59, 18)\n",
"# Estimated course and speed\n",
"C_COURSE = 175\n",
"SPEED = 20\n",
Expand Down Expand Up @@ -61,16 +61,16 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"MD = https://www.mapdevelopers.com/draw-circle-tool.php?circles=%5B%5B6581268%2C23.4367%2C86.7554%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%2C%5B5722376%2C23.4367%2C71.7571%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%5D\n",
"Starting point = (N 58°,46.1′;E 18°,0.1′)\n",
"End point = (N 58°,26.2′;E 18°,3.5′)\n"
"MD = https://www.mapdevelopers.com/draw-circle-tool.php?circles=%5B%5B6576360%2C23.574892%2C86.755406%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%2C%5B5720821%2C23.574892%2C71.757073%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%2C%5B1856%2C58.935428%2C18.002331%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%2C%5B1856%2C58.60437%2C18.058362%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%5D\n",
"Starting point = (Geodetic) (N 58°,56.1′;E 18°,0.1′)\n",
"End point = (Geodetic) (N 58°,36.3′;E 18°,3.5′)\n"
]
}
],
Expand All @@ -83,7 +83,7 @@
" course_degrees = C_COURSE,\\\n",
" speed_knots = SPEED)\n",
"try:\n",
" intersections, _, _ = st.get_intersections ()\n",
" intersections, _, _ = st.get_intersections (return_geodetic=True)\n",
" print (\"MD = \" + st.get_map_developers_string ())\n",
" assert isinstance (intersections, tuple)\n",
" print (\"Starting point = \" + str(get_representation(intersections[1],1)))\n",
Expand All @@ -110,7 +110,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.10"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down

0 comments on commit a810a65

Please sign in to comment.