home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 508833311

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/3080#issuecomment-508833311 https://api.github.com/repos/pydata/xarray/issues/3080 508833311 MDEyOklzc3VlQ29tbWVudDUwODgzMzMxMQ== 5852283 2019-07-05T18:23:03Z 2019-07-05T18:23:03Z CONTRIBUTOR

I think you're right, this is nearly the same issue as #2850. Your dataset has an attribute named _NCProperties which is one of the hidden/forbidden attributes.

If I remove the attribute: del dsSel.attrs['_NCProperties']

dsSel.to_netcdf(outnc) then works for me with no errors.

You can also delete the attribute on ds instead and subsequent selections should also work.

As an aside, if I run ncdump -h https://pavics.ouranos.ca/twitcher/ows/proxy/thredds/dodsC/birdhouse/cccs_portal/indices/Final/BCCAQv2/tg_mean/YS/rcp26/simulations/BCCAQv2+ANUSPLIN300_bcc-csm1-1_historical+rcp26_r1i1p1_1950-2100_tg_mean_YS.nc "_NCProperties" doesn't show up in the attributes, but I assume this is because ncdump hides it and not because it gets added by xarray or netcdf4. If that's not the case it could be a bug in xarray or netcdf4.

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