home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 322853199

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/1324#issuecomment-322853199 https://api.github.com/repos/pydata/xarray/issues/1324 322853199 MDEyOklzc3VlQ29tbWVudDMyMjg1MzE5OQ== 23199378 2017-08-16T18:06:56Z 2017-08-16T18:06:56Z NONE

I think I have a similar problem.

I have a netCDF file with CF time. I'm trying to add two variables with a different kind of time (EPIC time, time2). These variables should not be datetime. They should be ordinary numbers.

Even when I don't include any units, it chokes on "units". Even with encoding = None ValueError: Failed hard to prevent overwriting key 'units' The gist is here: https://gist.github.com/anonymous/4614dfb55778cd0d51427daf6503cd8c

It's a time specific thing, because if I do the same operation with a different variable in the same file (read a variable, do something with it, then save it) it works fine. One clue is that it still carries the attributes (generally desired behavior) to the new file. But my EPIC time and time2 above, if they NOT datetime and have NO attributes... should work the same way.

This could be my misunderstanding of xarray and time operations, I'm a python newbie, if so I would appreciate someone setting me straight. It's preventing me from using xarray.

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