home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 531283688

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/pull/3302#issuecomment-531283688 https://api.github.com/repos/pydata/xarray/issues/3302 531283688 MDEyOklzc3VlQ29tbWVudDUzMTI4MzY4OA== 2448579 2019-09-13T15:29:34Z 2019-09-13T15:29:34Z MEMBER

Thanks @stefraynaud . I'm having trouble figuring out defining the length of a gap in the irregular coordinate case.

e.g.

da4 = xr.DataArray([np.nan, np.nan, np.nan, 1, np.nan, np.nan, 4, np.nan, np.nan], dims=["y"], coords={"y": [0, 2, 5, 6, 7, 8, 10, 12, 14]})

<xarray.DataArray (y: 9)> array([nan, nan, nan, 1., nan, nan, 4., nan, nan]) Coordinates: * y (y) int64 0 2 5 6 7 8 10 12 14

What is the length of these three gaps given that xarray doesn't have any understanding of grids?

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