id,node_id,number,state,locked,title,user,body,created_at,updated_at,closed_at,merged_at,merge_commit_sha,assignee,milestone,draft,head,base,author_association,auto_merge,repo,url,merged_by 143511107,MDExOlB1bGxSZXF1ZXN0MTQzNTExMTA3,1597,closed,0,Add methods for combining variables of differing dimensionality,1386642," - [x] Closes #1317 - [x] Tests added / passed - [x] Passes ``git diff upstream/master | flake8 --diff`` - [x] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API While working on #1317, I settled upon combining `stack` and `to_array` to create two dimensional numpy arrays given an xarray Dataset. Unfortunately, `to_array` automatically broadcasts the variables of dataset, which is not always a desirable behavior. For instance, I was trying to combine precipitation (a horizontal field) and temperature (a 3D field) into one array. This PR enables this by adding two new methods to xarray: - `Dataset.stack_cat`, and - `DataArray.unstack_cat`. `stack_cat` uses `stack`, `expand_dims`, and `concat` to reshape a Dataset into a Dataarray with a helpful MultiIndex, and `unstack_cat` reverses the process. I implemented this functionality as a new method since `to_array` is such a clean method already. I really appreciate your thoughts on this. Thanks! cc @jhamman @shoyer ",2017-09-27T22:01:57Z,2019-07-05T15:59:51Z,2019-07-05T00:32:51Z,2019-07-05T00:32:51Z,9c0fb6c6ca4a4da52ba5b0c2b17c12573a66def0,,,0,e08622a9dd78581c7051ca24d559410022022860,e26fbca88cb6c3b950bd52879a193de85feef7c8,CONTRIBUTOR,,13221727,https://github.com/pydata/xarray/pull/1597, 166949770,MDExOlB1bGxSZXF1ZXN0MTY2OTQ5Nzcw,1885,closed,0,Raise when pcolormesh coordinate is not sorted,1386642," - [x] Closes #1852 (remove if there is no corresponding issue, which should only be the case for minor changes) - [x] Tests added (for all bug fixes or enhancements) - [x] Tests passed (for all non-documentation changes) I added a simple warning to `_infer_interval_breaks` in `xarray/plot/plot.py`. The warning does not currently say the name of the coordinate, because that would requiring introducing a new function or potentially passing a name argument, which seems overly complicated for such a small dit. Hopefully, this isn't a problem because the user can easily figure out which coordinate is not sorted by process of elimination.",2018-02-03T06:37:34Z,2018-02-18T19:26:36Z,2018-02-18T19:06:31Z,2018-02-18T19:06:31Z,be27319bcf6a754f1655918fac45c1cd2cfa0cec,,,0,246de86f1b2a2b1bd1b49f80f5ed1d5ee411a6b1,e0621c7d66c13b486b1890f67a126caec2990da7,CONTRIBUTOR,,13221727,https://github.com/pydata/xarray/pull/1885, 310641314,MDExOlB1bGxSZXF1ZXN0MzEwNjQxMzE0,3262,closed,0,[WIP] Implement 1D to ND interpolation,1386642," - [x] Closes #3252 - [ ] Tests added - [ ] Passes `black . && mypy . && flake8` - [ ] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API ",2019-08-24T21:23:21Z,2020-12-17T01:29:12Z,2020-12-17T01:29:12Z,,42bb2932e40f9f868e35afd540c8117dd668f041,,,0,5f90f4ed52210aaa1e3afd6c5da2f2295df31363,7bf9df9d75c40bcbf2dd28c47204529a76561a3f,CONTRIBUTOR,,13221727,https://github.com/pydata/xarray/pull/3262, 432754049,MDExOlB1bGxSZXF1ZXN0NDMyNzU0MDQ5,4144,closed,0,Improve typehints of xr.Dataset.__getitem__,1386642,"To resolve some common type-related errors, this PR adds some overload type hints to `Dataset.__getitem__`. Now mypy can correctly infer that hashable inputs return DataArrays. - [x] Closes #4125 - [x] Passes `isort -rc . && black . && mypy . && flake8` ",2020-06-10T23:33:41Z,2020-06-17T01:41:27Z,2020-06-15T11:25:53Z,2020-06-15T11:25:52Z,bc5c79e5f79d8d7fbb1ed593a5413028a1bdfb36,,,0,400dc62b0627b2deae4422d4579c1762cfcf4274,e8bd8665e8fd762031c2d9c87987d21e113e41cc,CONTRIBUTOR,,13221727,https://github.com/pydata/xarray/pull/4144,