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/7018#issuecomment-1248550900,https://api.github.com/repos/pydata/xarray/issues/7018,1248550900,IC_kwDOAMm_X85Ka1_0,64621312,2022-09-15T19:59:39Z,2022-09-15T19:59:39Z,NONE,"I tried your suggestion and still ran into a memory allocation error, but it sounds like you're onto something. I also found this other thread about `reindex` causing memory allocation errors but it doesn't look like a solution was discovered there either. https://github.com/pydata/xarray/issues/2745","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1368696980
https://github.com/pydata/xarray/issues/7018#issuecomment-1242793638,https://api.github.com/repos/pydata/xarray/issues/7018,1242793638,IC_kwDOAMm_X85KE4am,64621312,2022-09-10T19:34:26Z,2022-09-10T19:34:26Z,NONE,"I found a functional workaround is to chunk by one of the spatial dimensions instead. I'd still like to know why the code above fails though. I'm assuming there's a scheduled task with dask the occurs before `to_netcdf` but I haven't been able to figure out what that is.
```python
ds = xr.open_dataset(fldr_in_grib, engine=""cfgrib"", chunks={""latitude"":875},
backend_kwargs={'indexpath': ''})
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1368696980
https://github.com/pydata/xarray/issues/6924#issuecomment-1219672919,https://api.github.com/repos/pydata/xarray/issues/6924,1219672919,IC_kwDOAMm_X85IsrtX,64621312,2022-08-18T16:05:02Z,2022-08-18T16:05:02Z,NONE,"I cross posted this as a [dask issue](https://github.com/dask/dask/issues/9396) and on [stack overflow](https://stackoverflow.com/questions/73394589/using-xarray-to-convert-a-zarr-file-to-a-netcdf-causing-memory-allocation-error). I learned that ""dask will often have as many chunks in memory as twice the number of active threads"" ([best practices with dask arrays](https://docs.dask.org/en/stable/array-best-practices.html#best-practices)) and including `dask.config.set(scheduler='synchronous')` which forces single thread computation ([dask scheduling](https://docs.dask.org/en/stable/scheduling.html#single-thread)) resulted in the behavior I expected which is memory usage fluctuations that are roughly the magnitude of the chunk size. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1340994913
https://github.com/pydata/xarray/issues/6920#issuecomment-1216907148,https://api.github.com/repos/pydata/xarray/issues/6920,1216907148,IC_kwDOAMm_X85IiIeM,64621312,2022-08-16T16:59:47Z,2022-08-16T16:59:47Z,NONE,"Thanks, @andersy005. I think that `xr.save_mfdataset()` could certainly be helpful in my workflow but unfortunately, I have to consolidate these data from a netcdf for each 2-minute timestep to a netcdf for each day, and it sounds like there's no way around that bottleneck. I've come across suggestions to save the dataset to a `zarr` group and then export as a netcdf, so I'm going to give that a shot.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1340474484
https://github.com/pydata/xarray/issues/6892#issuecomment-1208388460,https://api.github.com/repos/pydata/xarray/issues/6892,1208388460,IC_kwDOAMm_X85IBots,64621312,2022-08-08T17:12:41Z,2022-08-08T17:12:41Z,NONE,"I realized that the reason I wasn't seeing what I was expecting was because of the dataset, not the plotting function. There shouldn't be any 0s in the `rainrate` variable.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1332143835
https://github.com/pydata/xarray/issues/6805#issuecomment-1187959131,https://api.github.com/repos/pydata/xarray/issues/6805,1187959131,IC_kwDOAMm_X85GztFb,64621312,2022-07-18T17:57:35Z,2022-07-18T17:57:35Z,NONE,I can't believe I forgot the asterisk!!! Thank you for catching that.,"{""total_count"": 2, ""+1"": 2, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1308176241
https://github.com/pydata/xarray/issues/6805#issuecomment-1187910591,https://api.github.com/repos/pydata/xarray/issues/6805,1187910591,IC_kwDOAMm_X85GzhO_,64621312,2022-07-18T17:42:14Z,2022-07-18T17:42:14Z,NONE,I just edited the original post to show that xr.open_dataset works. I hope that is adequate to show that the issue is with xarray and not `netcdf4.Dataset`.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1308176241