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/7630#issuecomment-1478617771,https://api.github.com/repos/pydata/xarray/issues/7630,1478617771,IC_kwDOAMm_X85YIeqr,90059220,2023-03-21T21:39:22Z,2023-03-21T21:39:22Z,NONE,"Thanks all, but it returns the `ValueError: output array is read-only`. Apparently, this is caused by `.expand_dims()` (see https://github.com/pydata/xarray/issues/3813). The work-around seems to be
```python
nc = nc.expand_dims(time=times_).copy()
```
Though I have no idea why.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1624560934