Skip to content

Commit

Permalink
Merge branch 'main' of github-personal:microsoft/aurora into main
Browse files Browse the repository at this point in the history
  • Loading branch information
wesselb committed Aug 13, 2024
2 parents 089c0ad + 92620e9 commit 6f53ce0
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions docs/example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,13 @@
"\n",
"## Downloading the Data\n",
"\n",
"To begin with, register an account with the [CDS](https://cds.climate.copernicus.eu/) and create `$HOME/.cdsapirc` with the following content:"
]
},
{
"cell_type": "raw",
"id": "90c1c149-f332-4a6a-8f30-71dc165d5bd9",
"metadata": {},
"source": [
"To begin with, register an account with the [Climate Data Store](https://cds.climate.copernicus.eu/) and create `$HOME/.cdsapirc` with the following content:\n",
"\n",
"```\n",
"url: https://cds.climate.copernicus.eu/api/v2\n",
"key: <UID>:<API key>"
]
},
{
"cell_type": "markdown",
"id": "b78325dd-6ce5-4698-8291-323702db9f7b",
"metadata": {},
"source": [
"key: <UID>:<API key>\n",
"```\n",
"\n",
"You can find your UID and API key on your account page.\n",
"\n",
"We now download the ERA5 data."
Expand Down Expand Up @@ -200,7 +190,7 @@
" metadata=Metadata(\n",
" lat=torch.from_numpy(surf_vars_ds.latitude.values),\n",
" lon=torch.from_numpy(surf_vars_ds.longitude.values),\n",
" # Converting to `datetime64[s]` ensure that the output of `tolist()` gives\n",
" # Converting to `datetime64[s]` ensures that the output of `tolist()` gives\n",
" # `datetime.datetime`s. Note that this needs to be a tuple of length one:\n",
" # one value for every batch element.\n",
" time=(surf_vars_ds.time.values.astype(\"datetime64[s]\").tolist()[i],),\n",
Expand Down

0 comments on commit 6f53ce0

Please sign in to comment.