diff --git a/docs/Service/Examples/timeseries_example.ipynb b/docs/Service/Examples/timeseries_example.ipynb index 66a5d491..0921c813 100644 --- a/docs/Service/Examples/timeseries_example.ipynb +++ b/docs/Service/Examples/timeseries_example.ipynb @@ -22,7 +22,7 @@ "source": [ "import earthkit.data\n", "\n", - "LOCATION = ((-9.11, 38.79))\n", + "LOCATION = [[-9.11, 38.79]]\n", "\n", "request = {\n", " \"class\": \"od\",\n", @@ -38,7 +38,7 @@ " \"step\": \"0/to/360\",\n", " \"feature\" : {\n", " \"type\" : \"timeseries\",\n", - " \"points\": [[LOCATION[0], LOCATION[1]]],\n", + " \"points\": LOCATION,\n", " \"axes\": \"step\",\n", " },\n", "}\n", @@ -77,7 +77,7 @@ " Converts latitude and longitude to a string representation with degrees\n", " and N/S/E/W.\n", " \"\"\"\n", - " (lat, lon) = location\n", + " (lat, lon) = location[0]\n", " lat_dir = \"N\" if lat >= 0 else \"S\"\n", " lon_dir = \"E\" if lon >= 0 else \"W\"\n", " return f\"{abs(lat):.2f}°{lat_dir}, {abs(lon):.2f}°{lon_dir}\""