home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 777451036

This data as json

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-777451036 https://api.github.com/repos/pydata/xarray/issues/4859 777451036 MDEyOklzc3VlQ29tbWVudDc3NzQ1MTAzNg== 5821660 2021-02-11T13:19:43Z 2021-02-11T13:19:43Z MEMBER

@kniperl You can test with #4893. This should fix the bytes issue.

But It seems that converting to string objects is by design (using "netcdf4").

```python coils = np.array(["A", "B", "C", "D", "E"]) test_ds = xr.Dataset() test_ds.coords["coils"] = coils print(test_ds)

<xarray.Dataset> Dimensions: (coils: 5) Coordinates: * coils (coils) <U1 'A' 'B' 'C' 'D' 'E' Data variables: empty

test_ds.to_netcdf("test_netcdf4.nc", engine="netcdf4") del test_ds test_ds = xr.open_dataset("test_netcdf4.nc", engine="netcdf4") print(test_ds)

<xarray.Dataset> Dimensions: (coils: 5) Coordinates: * coils (coils) object 'A' 'B' 'C' 'D' 'E' Data variables: empty

```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  800678839
Powered by Datasette · Queries took 0.673ms · About: xarray-datasette