home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 207054921

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
207054921 MDU6SXNzdWUyMDcwNTQ5MjE= 1263 xarray.open_mfdataset returns inconsistent times 5700886 closed 0     4 2017-02-12T14:55:02Z 2019-02-19T20:47:26Z 2019-02-19T20:47:26Z CONTRIBUTOR      

Problem

I am running into inconsistent time coordinates with a long climate model experiment that exceeds the limits of pandas.tslib.Timestamp (covers roughly 17th to 23rd century).

Currently, xarray.open_mfdataset delegates decoding of the time axis to xarray.open_dataset which decodes either to pandas time stamps or, of this fails, to netcdftime.datetime objects. xarray.open_mfdataset later combines the single-file datasets and just concatenates all the time axes.

Solution

  1. Let auto_combine check for consistency and repair the time axis if necessary.
  2. Let xarray.open_mfdataset prevent xarray.open_dataset from decoding the times for each file and only decode times after everything is combined.

The latter is equivalent to a workaround I use for the moment: Pass decode_times=False to xarray.open_mfdataset and then explicitly call xarray.decode_cf on the dataset.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1263/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 4 rows from issue in issue_comments
Powered by Datasette · Queries took 0.693ms · About: xarray-datasette