From cabf9820d93e9ccfca1bfdc1e99a3f7a91c1fcde Mon Sep 17 00:00:00 2001 From: mathleur Date: Fri, 10 Jan 2025 13:23:16 +0100 Subject: [PATCH] add location in timeseries example in docs as list of list --- docs/Service/Examples/timeseries_example.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}\""