home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 90658514

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
90658514 MDU6SXNzdWU5MDY1ODUxNA== 442 NetCDF attributes like `long_name` and `units` lost on `.mean()` 3404817 closed 0     5 2015-06-24T12:14:30Z 2020-04-05T18:18:31Z 2015-06-26T07:28:54Z CONTRIBUTOR      

When reading in a variable from netCDF, the standard attributes like long_name, standard_name, and units are being propagated, but apparently lost when calling ~~.load()~~ .mean() on the DataArray.

Couldn't these CF-Highly Recommended Variable Attributes be kept during this operation?

(What to do with them afterwards, e.g. upon merge, is a different question, unresolved also in the pandas community.)

EDIT: the problem actually occurs when calling .mean() (not .load(), as originally posted).

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

Links from other tables

  • 3 rows from issues_id in issues_labels
  • 5 rows from issue in issue_comments
Powered by Datasette · Queries took 75.65ms · About: xarray-datasette