From ae8de67675e826e74ef0f8535b086e9b6e5c2f8e Mon Sep 17 00:00:00 2001 From: cyschneck <22159116+cyschneck@users.noreply.github.com> Date: Wed, 13 Nov 2024 12:09:39 -0700 Subject: [PATCH] clear outputs --- ncl/receipts/great_circle.ipynb | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/ncl/receipts/great_circle.ipynb b/ncl/receipts/great_circle.ipynb index a37475d0..a55d1444 100644 --- a/ncl/receipts/great_circle.ipynb +++ b/ncl/receipts/great_circle.ipynb @@ -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", @@ -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", @@ -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",