Skip to content

Commit

Permalink
varname and eg notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyCMWF committed Aug 30, 2023
1 parent bce08eb commit 558c2c6
Show file tree
Hide file tree
Showing 3 changed files with 3,291 additions and 618 deletions.
1 change: 1 addition & 0 deletions earthkit/climate/shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ def _reduce_dataarray(
mask_dim_index = get_mask_dim_index(mask_dim, geodataframe)

out_xr = xr.concat(reduced_list, dim=mask_dim_index)
out_xr = out_xr.rename(new_short_name)

# # TODO: the following creates an xarray that cannot be saved to netCDF
# out_xr = out_xr.assign_coords(
Expand Down
4 changes: 2 additions & 2 deletions notebooks/aggregate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"source": [
"# Notebook to demonstrate the climate tools available\n",
"# Based on data retreived via the cdsapi, you will need a cdsapi key to download the data"
"Based on data retreived via the cdsapi, you will need a cdsapi key to download the data"
]
},
{
Expand Down Expand Up @@ -2647,7 +2647,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.8"
"version": "3.10.12"
},
"vscode": {
"interpreter": {
Expand Down
Loading

0 comments on commit 558c2c6

Please sign in to comment.