home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 1619929803

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
1619929803 I_kwDOAMm_X85gjirL 7609 How to parse a non-standard time unit format as `years since 850-01-01 0:0:0` in xarray library? 49648654 closed 0     1 2023-03-11T08:23:33Z 2023-03-11T13:58:20Z 2023-03-11T13:58:20Z NONE      

What is your issue?

Recently, I have been working with some netCDF data that has a time dimension in the format of years since 850-01-01 0:0:0. However, I encountered some issues when using xarray to read in and analyze the data. Specifically, I found that xarray is not able to parse this time format directly, and I also tried using other libraries like netcdf4 and cftime, but to no avail.

ValueError: In general, units must be one of 'microseconds', 'milliseconds', 'seconds', 'minutes', 'hours', or 'days' (or select abbreviated versions of these). For the '360_day' calendar, 'months' can also be used, or for the 'noleap' calendar 'common_years' can also be used. Got 'years' instead, which are not recognized.

I understand that xarray has been designed to handle various types of time formats, but I have not been able to find a solution for this particular format. Thank you very much for your time and consideration.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/7609/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
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 0.514ms · About: xarray-datasette