Skip to content

Commit

Permalink
clear outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
cyschneck committed Nov 13, 2024
1 parent 77db1db commit ae8de67
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions ncl/receipts/great_circle.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
" [53.3498, 52.3676, 51.9939],\n",
" [90.0, 0.0, -90.0, 0.0],\n",
" [40, 40, 40, 40],\n",
" [40, 40, 41, 41],\n",
" [40, 40, 41, 41]\n",
"]\n",
"ncl_lon = [\n",
" [-105.2705, -71.0589, -95.0982],\n",
Expand All @@ -109,7 +109,7 @@
" [-6.2603, 4.9041, -4.9760],\n",
" [0.0, -90.0, 0.0, 90.0],\n",
" [-105, -105, -105, -105],\n",
" [-105, -106, -106, -105],\n",
" [-105, -106, -106, -105]\n",
"]\n",
"ncl_results[poly_name[0]] = 1940856\n",
"ncl_results[poly_name[1]] = 250007.6\n",
Expand All @@ -123,22 +123,10 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "35803c5d-bf83-4a35-b61c-50466d9d5095",
"metadata": {},
"outputs": [
{
"ename": "NameError",
"evalue": "name 'poly_name' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[3], line 5\u001b[0m\n\u001b[1;32m 3\u001b[0m python_results \u001b[38;5;241m=\u001b[39m {}\n\u001b[1;32m 4\u001b[0m geod \u001b[38;5;241m=\u001b[39m Geod(ellps\u001b[38;5;241m=\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124msphere\u001b[39m\u001b[38;5;124m\"\u001b[39m) \u001b[38;5;66;03m# radius = 6370997 m\u001b[39;00m\n\u001b[0;32m----> 5\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m i \u001b[38;5;129;01min\u001b[39;00m \u001b[38;5;28mrange\u001b[39m(\u001b[38;5;28mlen\u001b[39m(\u001b[43mpoly_name\u001b[49m)):\n\u001b[1;32m 6\u001b[0m poly_area_m, _ \u001b[38;5;241m=\u001b[39m geod\u001b[38;5;241m.\u001b[39mpolygon_area_perimeter(ncl_lon[i], ncl_lat[i])\n\u001b[1;32m 7\u001b[0m poly_area_km2 \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mabs\u001b[39m(poly_area_m) \u001b[38;5;241m*\u001b[39m \u001b[38;5;241m1e-6\u001b[39m\n",
"\u001b[0;31mNameError\u001b[0m: name 'poly_name' is not defined"
]
}
],
"outputs": [],
"source": [
"from pyproj import Geod\n",
"\n",
Expand Down

0 comments on commit ae8de67

Please sign in to comment.