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/1475#issuecomment-1370563894,https://api.github.com/repos/pydata/xarray/issues/1475,1370563894,IC_kwDOAMm_X85RsSU2,12912489,2023-01-04T07:20:36Z,2023-01-04T07:20:36Z,NONE,"Recently I experimented with an (incomplete) duck-array prototype, wrapping an array of length N+1 in a duck array of length N (such that you can use it as a coordinate for a `DataArray` of length/shape N). It mostly worked (even though there may be some issues when you want to use it as an xarray index).
See https://github.com/scipp/scippx/blob/main/src/scippx/bin_edge_array.py (there is a bunch of unrelated stuff in the repo, you can mostly ignore that).","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,242181620
https://github.com/pydata/xarray/issues/1475#issuecomment-1328123153,https://api.github.com/repos/pydata/xarray/issues/1475,1328123153,IC_kwDOAMm_X85PKY0R,74651486,2022-11-26T22:18:59Z,2022-11-26T22:18:59Z,NONE,Has there been any progress on this?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,242181620
https://github.com/pydata/xarray/issues/1475#issuecomment-1190842459,https://api.github.com/repos/pydata/xarray/issues/1475,1190842459,IC_kwDOAMm_X85G-tBb,19657652,2022-07-20T22:46:36Z,2022-07-20T22:46:36Z,NONE,Not sure where this stands but another advantage might be the ability to call `xr.open_dataarray` on netcdf files containing individual variables plus coordinate bounds (data from CMIP5/6 are commonly stored this way).,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,242181620
https://github.com/pydata/xarray/issues/1475#issuecomment-314862336,https://api.github.com/repos/pydata/xarray/issues/1475,314862336,MDEyOklzc3VlQ29tbWVudDMxNDg2MjMzNg==,25473287,2017-07-12T18:50:02Z,2017-07-13T01:48:32Z,NONE,"> Probably the simplest option is to use structured dtypes, which should already work with the existing version of xarray, e.g.,
Thanks, that's a nice trick! Supporting da.x_bounds['start'] will definitely be helpful!
However, I am still concerned about 2D boundaries. Using the structured data type, 2D bounds will be an array of size (Nx,Ny,4) instead of (Nx+1,Ny+1). Although this matches the [CF convention](http://cfconventions.org/cf-conventions/v1.6.0/cf-conventions.html#cell-boundaries), it takes 4x memory and needs to be converted back to (Nx+1,Ny+1) for `pcolormesh()`. Not a big problem though. I will be happy to go this way if (Nx+1,Ny+1)-sized bounds cannot be implemented.","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,242181620
https://github.com/pydata/xarray/issues/1475#issuecomment-314604740,https://api.github.com/repos/pydata/xarray/issues/1475,314604740,MDEyOklzc3VlQ29tbWVudDMxNDYwNDc0MA==,25473287,2017-07-11T23:58:20Z,2017-07-11T23:58:20Z,NONE,"> See also #1079 and #1079 (comment)
Thanks! The idea of `NDIntervalIndex` mentioned at [pandas-dev/pandas#7640 comment](https://github.com/pandas-dev/pandas/issues/7640#issuecomment-71794646) seems powerful but too complicated to implement? Could there be a simpler way to hook the boundary attribute to DataArray?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,242181620