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/1352#issuecomment-881941374,https://api.github.com/repos/pydata/xarray/issues/1352,881941374,IC_kwDOAMm_X840kVt-,14808389,2021-07-17T18:38:15Z,2021-07-17T18:38:29Z,MEMBER,closing as I believe this to be fixed by #1648,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,219321876 https://github.com/pydata/xarray/issues/1352#issuecomment-813098350,https://api.github.com/repos/pydata/xarray/issues/1352,813098350,MDEyOklzc3VlQ29tbWVudDgxMzA5ODM1MA==,14808389,2021-04-04T20:59:43Z,2021-04-04T20:59:43Z,MEMBER,"bisecting tells me that this seems to have been fixed by 8632cd7b3f468865db4dc9e5c09075f941dc70f2 (#1648): ```python import xarray as xr import numpy as np da = xr.DataArray( np.linspace(0, 1, 2 * 3 * 4).reshape(2, 3, 4), coords={""x"": [""a"", ""b""], ""y"": [""x"", ""y"", ""z""], ""z"": np.arange(4)}, dims=(""x"", ""y"", ""z""), name=""abc"", ) da.loc[""a"", ""x""].to_dataset().to_netcdf(""test.nc"") xr.open_dataset(""test.nc"").load() # to verify that the netcdf file is valid ``` only fails before that commit.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,219321876 https://github.com/pydata/xarray/issues/1352#issuecomment-293016305,https://api.github.com/repos/pydata/xarray/issues/1352,293016305,MDEyOklzc3VlQ29tbWVudDI5MzAxNjMwNQ==,1217238,2017-04-10T17:13:13Z,2017-04-10T17:13:13Z,MEMBER,"It looks like we have some sort of special logic that calls `len()` when it shouldn't, thereby precluding scaling scalars string variables in netCDF files.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,219321876 https://github.com/pydata/xarray/issues/1352#issuecomment-292843480,https://api.github.com/repos/pydata/xarray/issues/1352,292843480,MDEyOklzc3VlQ29tbWVudDI5Mjg0MzQ4MA==,1217238,2017-04-10T03:49:16Z,2017-04-10T03:49:16Z,MEMBER,"Sorry I missed this earlier. Do you know how you created this Dataset? Xarray should not let you make a dataset with a 0D dimension variable: that is a violation of its data model.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,219321876