Skip to content

Commit 01cba50

Browse files
authored
Merge pull request #299 from ecmwf/develop
update docs
2 parents a727c43 + 105d7e2 commit 01cba50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/Service/Examples/timeseries_example.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"source": [
2323
"import earthkit.data\n",
2424
"\n",
25-
"LOCATION = ((-9.11, 38.79))\n",
25+
"LOCATION = [[-9.11, 38.79]]\n",
2626
"\n",
2727
"request = {\n",
2828
" \"class\": \"od\",\n",
@@ -38,7 +38,7 @@
3838
" \"step\": \"0/to/360\",\n",
3939
" \"feature\" : {\n",
4040
" \"type\" : \"timeseries\",\n",
41-
" \"points\": [[LOCATION[0], LOCATION[1]]],\n",
41+
" \"points\": LOCATION,\n",
4242
" \"axes\": \"step\",\n",
4343
" },\n",
4444
"}\n",
@@ -77,7 +77,7 @@
7777
" Converts latitude and longitude to a string representation with degrees\n",
7878
" and N/S/E/W.\n",
7979
" \"\"\"\n",
80-
" (lat, lon) = location\n",
80+
" (lat, lon) = location[0]\n",
8181
" lat_dir = \"N\" if lat >= 0 else \"S\"\n",
8282
" lon_dir = \"E\" if lon >= 0 else \"W\"\n",
8383
" return f\"{abs(lat):.2f}°{lat_dir}, {abs(lon):.2f}°{lon_dir}\""

0 commit comments

Comments
 (0)