home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 375911669

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/2002#issuecomment-375911669 https://api.github.com/repos/pydata/xarray/issues/2002 375911669 MDEyOklzc3VlQ29tbWVudDM3NTkxMTY2OQ== 10050469 2018-03-24T17:47:57Z 2018-03-24T17:47:57Z MEMBER

The problem comes from the fact that the times in the files are stored in int32. This mwe reproduces the error:

python import xarray as xr import numpy as np ds = xr.Dataset() ds['time'] = xr.DataArray([np.int32(788961600)], dims=['time']) ds['time'].attrs['units'] = 'seconds since 1981-01-01' xr.decode_cf(ds)['time']

This is due to https://github.com/pydata/xarray/pull/1414/, I'm looking into it

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