home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 630863198

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/3476#issuecomment-630863198 https://api.github.com/repos/pydata/xarray/issues/3476 630863198 MDEyOklzc3VlQ29tbWVudDYzMDg2MzE5OA== 624352 2020-05-19T14:38:26Z 2020-05-19T14:38:26Z NONE

I ran into the same issue. It seems like zarr is inserting VLenUTF8 as a filter, but the loaded data array already has that as a filter so it's trying to double encode . So another workaround is to delete the filters on site_code:

``` import xarray as xr

sm_from_zarr = xr.open_zarr('tmp/test_sm_zarr') del sm_from_zarr.site_code.encoding["filters"] sm_from_zarr.to_zarr('tmp/test_sm_zarr_from', mode='w') ```

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