Skip to content

Commit

Permalink
Merge pull request #299 from ecmwf/develop
Browse files Browse the repository at this point in the history
update docs
  • Loading branch information
mathleur authored Jan 10, 2025
2 parents a727c43 + 105d7e2 commit 01cba50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/Service/Examples/timeseries_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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}\""
Expand Down

0 comments on commit 01cba50

Please sign in to comment.