home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 965599998

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/3942#issuecomment-965599998 https://api.github.com/repos/pydata/xarray/issues/3942 965599998 IC_kwDOAMm_X845jeL- 2448579 2021-11-10T18:01:46Z 2021-11-10T18:01:46Z MEMBER

Please may I ask: Why not default to xarray encoding time as 'units': 'nanoseconds since 1970-01-01' to be consistent with np.datetime64[ns]?

It's choosing the highest resolution that matches the data, which has the benefit of allowing the maximum possible time range given the data's frequency: https://github.com/pydata/xarray/blob/5871637873cd83c3a656ee6f4df86ea6628cf68a/xarray/coding/times.py#L317-L319

I'm not sure if this is why it was originally chosen; but that is one advantage. Perhaps @spencerkclark has some insight here.

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