home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 381717472

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/2064#issuecomment-381717472 https://api.github.com/repos/pydata/xarray/issues/2064 381717472 MDEyOklzc3VlQ29tbWVudDM4MTcxNzQ3Mg== 1197350 2018-04-16T19:15:19Z 2018-04-16T19:15:19Z MEMBER

👍 This is a persistent problem for me as well.

I often find myself writing a preprocessor function like this python def process_coords(ds, concat_dim='time', drop=True): coord_vars = [v for v in ds.data_vars if concat_dim not in ds[v].dims] if drop: return ds.drop(coord_vars) else: return ds.set_coords(coord_vars) ds = xr.open_mfdataset('*.nc', preprocess=process_coords)

The reason to drop the coordinates is to avoid the comparison that happens when you concatenate coords.

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