diff --git a/docs/batch.md b/docs/batch.md index 63e04df..22eadba 100644 --- a/docs/batch.md +++ b/docs/batch.md @@ -76,7 +76,7 @@ The following static variables are allowed: ## `Batch.atmos_vars` -`Batch.static_vars` is a dictionary mapping names of atmospheric variables to the +`Batch.atmos_vars` is a dictionary mapping names of atmospheric variables to the numerical values of the variables. The atmospheric variables must be of the form `(b, t, c, h, w)` where `b` is the batch size, `t` the history dimension, `c` the number of pressure levels, `h` the number of latitudes, diff --git a/docs/example_era5.ipynb b/docs/example_era5.ipynb index 4e62dd6..9ba76c2 100644 --- a/docs/example_era5.ipynb +++ b/docs/example_era5.ipynb @@ -17,14 +17,16 @@ "\n", "## Downloading the Data\n", "\n", - "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", + "To begin with, register an account with the [Climate Data Store](https://cds-beta.climate.copernicus.eu/) and create `$HOME/.cdsapirc` with the following content:\n", "\n", "```\n", - "url: https://cds.climate.copernicus.eu/api/v2\n", - "key: :\n", + "url: https://cds-beta.climate.copernicus.eu/api\n", + "key: \n", "```\n", "\n", - "You can find your UID and API key on your account page.\n", + "You can find your API key on your account page.\n", + "\n", + "In order to be able to download ERA5 data, you need to accept the terms of use in the [dataset page](https://cds-beta.climate.copernicus.eu/datasets/reanalysis-era5-single-levels?tab=download).\n", "\n", "We now download the ERA5 data." ] @@ -196,8 +198,8 @@ " # 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", - " atmos_levels=tuple(int(level) for level in atmos_vars_ds.level.values),\n", + " time=(surf_vars_ds.valid_time.values.astype(\"datetime64[s]\").tolist()[i],),\n", + " atmos_levels=tuple(int(level) for level in atmos_vars_ds.pressure_level.values),\n", " ),\n", ")" ] diff --git a/docs/example_hres_t0.ipynb b/docs/example_hres_t0.ipynb index 2b28a16..1ee291b 100644 --- a/docs/example_hres_t0.ipynb +++ b/docs/example_hres_t0.ipynb @@ -88,14 +88,16 @@ "## Downloading Static Variables from ERA5 Data\n", "\n", "The static variables are not available in WeatherBench2, so we need to download them from ERA5, just like we did [in the example for ERA5](example_era5#downloading-the-data).\n", - "To do so, register an account with the [Climate Data Store](https://cds.climate.copernicus.eu/) and create `$HOME/.cdsapirc` with the following content:\n", + "To do so, register an account with the [Climate Data Store](https://cds-beta.climate.copernicus.eu/) and create `$HOME/.cdsapirc` with the following content:\n", "\n", "```\n", - "url: https://cds.climate.copernicus.eu/api/v2\n", - "key: :\n", + "url: https://cds-beta.climate.copernicus.eu/api\n", + "key: \n", "```\n", "\n", - "You can find your UID and API key on your account page." + "You can find your API key on your account page.\n", + "\n", + "In order to be able to download ERA5 data, you need to accept the terms of use in the [dataset page](https://cds-beta.climate.copernicus.eu/datasets/reanalysis-era5-single-levels?tab=download)." ] }, { @@ -220,8 +222,8 @@ " # 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", - " atmos_levels=tuple(int(level) for level in atmos_vars_ds.level.values),\n", + " time=(surf_vars_ds.valid_time.values.astype(\"datetime64[s]\").tolist()[i],),\n", + " atmos_levels=tuple(int(level) for level in atmos_vars_ds.pressure_level.values),\n", " ),\n", ")" ]