html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/3681#issuecomment-573042086,https://api.github.com/repos/pydata/xarray/issues/3681,573042086,MDEyOklzc3VlQ29tbWVudDU3MzA0MjA4Ng==,7933853,2020-01-10T13:48:09Z,2020-01-10T13:49:24Z,NONE,"Unfortunately, `join='override'` raises an IndexError.
``` --------------------------------------------------------------------------- IndexError Traceback (most recent call last) in ----> 1 ds6 = xr.concat((ds1,ds2), dim='time',join='override') ~/anaconda3/lib/python3.6/site-packages/xarray/core/concat.py in concat(objs, dim, data_vars, coords, compat, positions, fill_value, join) 131 ""objects, got %s"" % type(first_obj) 132 ) --> 133 return f(objs, dim, data_vars, coords, compat, positions, fill_value, join) 134 135 ~/anaconda3/lib/python3.6/site-packages/xarray/core/concat.py in _dataset_concat(datasets, dim, data_vars, coords, compat, positions, fill_value, join) 299 datasets = [ds.copy() for ds in datasets] 300 datasets = align( --> 301 *datasets, join=join, copy=False, exclude=[dim], fill_value=fill_value 302 ) 303 ~/anaconda3/lib/python3.6/site-packages/xarray/core/alignment.py in align(join, copy, indexes, exclude, fill_value, *objects) 269 270 if join == ""override"": --> 271 objects = _override_indexes(objects, all_indexes, exclude) 272 273 # We don't reindex over dimensions with all equal indexes for two reasons: ~/anaconda3/lib/python3.6/site-packages/xarray/core/alignment.py in _override_indexes(objects, all_indexes, exclude) 53 for dim in obj.dims: 54 if dim not in exclude: ---> 55 new_indexes[dim] = all_indexes[dim][0] 56 objects[idx + 1] = obj._overwrite_indexes(new_indexes) 57 IndexError: list index out of range ```
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,548029687 https://github.com/pydata/xarray/issues/3681#issuecomment-573040403,https://api.github.com/repos/pydata/xarray/issues/3681,573040403,MDEyOklzc3VlQ29tbWVudDU3MzA0MDQwMw==,7933853,2020-01-10T13:43:41Z,2020-01-10T13:44:15Z,NONE,"Thanks Tom. This indeed gives a dataset with the correct dimensions but there is missing data ![Screen Shot 2020-01-10 at 14 42 27](https://user-images.githubusercontent.com/7933853/72157141-7a2ca780-33b7-11ea-9563-1323175f070a.png) I've also tried `join='override'` but this raises an IndexError. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,548029687 https://github.com/pydata/xarray/issues/3681#issuecomment-573026476,https://api.github.com/repos/pydata/xarray/issues/3681,573026476,MDEyOklzc3VlQ29tbWVudDU3MzAyNjQ3Ng==,7933853,2020-01-10T13:01:46Z,2020-01-10T13:01:46Z,NONE,"good point,`np.array_equal(ds1.lat , ds2.lat)` yields `False` whereas `np.allclose()` reported `True`. How to use `compat='override'` in this case? I tried ``` ds3 = xr.concat((ds1,ds2), dim='time',compat='override',coords='minimal') ``` But this didn't work. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,548029687