Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
missing (default) concatenated dim when openning single file
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof (Chris) Bernat authored and kbernat committed Mar 20, 2018
1 parent 9515ccc commit d6ab136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cate/core/ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,8 @@ def open_xarray_dataset(paths, concat_dim='time', **kwargs) -> xr.Dataset:
chunks=chunks,
autoclose=True,
**kwargs)
if 'time' not in ds.dims:
ds.expand_dims('time')
if concat_dim not in ds.dims:
ds.expand_dims(concat_dim)

return ds

Expand Down

0 comments on commit d6ab136

Please sign in to comment.