issue_comments: 115933651
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/443#issuecomment-115933651 | https://api.github.com/repos/pydata/xarray/issues/443 | 115933651 | MDEyOklzc3VlQ29tbWVudDExNTkzMzY1MQ== | 1217238 | 2015-06-27T01:22:25Z | 2015-06-27T22:44:02Z | MEMBER | OK, I understand now. One of these files looks like:
The problem is that the Another interesting aspect of this file, which relates to how I as hoping to fix https://github.com/xray/xray/issues/438, is that it includes a time coordinate with length 1, but none of the other dataset variables use that coordinate. This suggests to me that we need some sort of hook that can allow you to transform a single dataset before they are joined with ``` python def fix_my_data(ds): return (ds.assign_coords( agl=('mean_height_agl', range(ds.dims['mean_height_agl']))) .swap_dims({'mean_height_agl': 'agl'}) .squeeze('time')) ds = xray.open_mfdataset('*.nc', preprocess=fix_my_data) ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
91109966 |