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/4859#issuecomment-777612332,https://api.github.com/repos/pydata/xarray/issues/4859,777612332,MDEyOklzc3VlQ29tbWVudDc3NzYxMjMzMg==,38673295,2021-02-11T16:16:43Z,2021-02-11T16:16:43Z,NONE,"@kmuehlbauer Thanks a lot, I will check it ASAP. Yop, conversion to object from U4 is, I believe, normal behaviour. However, this does not cause any trouble for me so far. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,800678839
https://github.com/pydata/xarray/issues/4859#issuecomment-772818772,https://api.github.com/repos/pydata/xarray/issues/4859,772818772,MDEyOklzc3VlQ29tbWVudDc3MjgxODc3Mg==,38673295,2021-02-03T20:59:00Z,2021-02-03T20:59:00Z,NONE,"> Yes, there was a behaviour change in h5py. A fix is on the way but not yet released: [h5netcdf/h5netcdf#81](https://github.com/h5netcdf/h5netcdf/issues/81)
>
> For the time being you can downgrade h5py: `conda install h5py=2` which should fix the issue.
Thank you!","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,800678839
https://github.com/pydata/xarray/issues/4859#issuecomment-772818248,https://api.github.com/repos/pydata/xarray/issues/4859,772818248,MDEyOklzc3VlQ29tbWVudDc3MjgxODI0OA==,38673295,2021-02-03T20:58:07Z,2021-02-03T20:58:07Z,NONE,"Possible solution to my problem is:
```python
test_ds.coords[""coils""] = test_ds.coils.values.astype(np.unicode_)
test_ds
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,800678839
https://github.com/pydata/xarray/issues/2795#issuecomment-709991825,https://api.github.com/repos/pydata/xarray/issues/2795,709991825,MDEyOklzc3VlQ29tbWVudDcwOTk5MTgyNQ==,38673295,2020-10-16T11:34:05Z,2020-10-16T11:34:05Z,NONE,"Hi, I also vote for this function, My typical use-case.
There is some structure in 3D space and I need to ""flatten it"" to 2D. Let us say it is axially symetric so I assign R and Z coordinate to points (or r and theta in polar). And I want to simplify this using `interp`; however, it requuires unique coordinates.
I have some solution here: https://stackoverflow.com/questions/51058379/drop-duplicate-times-in-xarray
and adapted this into actuall function:
```python
def distribure_uniform(ds, N_points=512):
ds_theta = ds.sortby(""theta"").swap_dims({""idx"": ""theta""})
_, index = np.unique(ds_theta['theta'], return_index=True)
ds_theta = ds_theta.isel(theta=index)
ds_theta = ds_theta.interp(
theta=np.linspace(ds.theta.min(), ds.theta.max(), N_points))
ds_theta = ds_theta.swap_dims({""theta"": ""idx""})
return ds_theta
```
In an idal case I would like to write something like this:
```python
def distribure_uniform(ds, N_points=512):
ds_theta= ds.unique(""theta"", sorted=False, sort=True)
ds_theta = ds_theta.swap_dims({""idx"": ""theta""})
ds_theta = ds_theta.interp(
theta=np.linspace(ds.theta.min(), ds.theta.max(), N_points))
ds_theta = ds_theta.swap_dims({""theta"": ""idx""})
return ds_theta
```
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,415774106