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/4338#issuecomment-673433045,https://api.github.com/repos/pydata/xarray/issues/4338,673433045,MDEyOklzc3VlQ29tbWVudDY3MzQzMzA0NQ==,1872600,2020-08-13T11:54:10Z,2020-08-13T12:04:11Z,NONE,"@nicholaskgeorge your minimal test would be monotonic if `square2` and `square4` had `x` coordinates `[3,4,5]` instead of `[2,3,4]`, but it seems `combine_by_coords` doesn't mind that?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,677773328 https://github.com/pydata/xarray/issues/4338#issuecomment-673147952,https://api.github.com/repos/pydata/xarray/issues/4338,673147952,MDEyOklzc3VlQ29tbWVudDY3MzE0Nzk1Mg==,2448579,2020-08-12T22:50:33Z,2020-08-12T22:50:33Z,MEMBER,no worries. I'll close this as a duplicate.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,677773328 https://github.com/pydata/xarray/issues/4338#issuecomment-673128033,https://api.github.com/repos/pydata/xarray/issues/4338,673128033,MDEyOklzc3VlQ29tbWVudDY3MzEyODAzMw==,56926399,2020-08-12T21:49:45Z,2020-08-12T21:49:45Z,NONE,Thank you @dcherian ! It works. I'm now getting an error telling me the that the axis are not monotonic when I apply it to my real data but I think its something I have to sort out. Sorry I didn't realize this issue was put up before.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,677773328 https://github.com/pydata/xarray/issues/4338#issuecomment-672959944,https://api.github.com/repos/pydata/xarray/issues/4338,672959944,MDEyOklzc3VlQ29tbWVudDY3Mjk1OTk0NA==,2448579,2020-08-12T15:55:24Z,2020-08-12T15:55:24Z,MEMBER,"Thanks for the well written issue @nicholaskgeorge This is a duplicate of https://github.com/pydata/xarray/issues/3248 . The solution here is to make all tiles have the same name, use `.to_dataset()` and then pass that to `combine_by_coords` ``` In [9]: square1 = xr.DataArray(name=""box"", data=np.random.randint(5, size=(3, 2)), coords=[(""x"", [0,1,2]),('y',[0,1])]) ...: square2 = xr.DataArray(name=""box"", data=np.random.randint(5, size=(3, 2)), coords=[(""x"", [2,3,4]),('y',[0,1])]) ...: square3 = xr.DataArray(name=""box"", data=np.random.randint(5, size=(3, 2)), coords=[(""x"", [0,1,2]),('y',[2,3])]) ...: square4 = xr.DataArray(name=""box"", data=np.random.randint(5, size=(3, 2)), coords=[(""x"", [2,3,4]),('y',[2,3])]) ...: ...: combineddata = xr.combine_by_coords(sq.to_dataset() for sq in [square1,square2,square3,square4]) ``` You can use `combineddata.to_array()` to convert back to a DataArray.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,677773328