home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 290954513

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/1053#issuecomment-290954513 https://api.github.com/repos/pydata/xarray/issues/1053 290954513 MDEyOklzc3VlQ29tbWVudDI5MDk1NDUxMw== 1217238 2017-04-01T23:40:06Z 2017-04-01T23:40:06Z MEMBER

My intuition was that we use @ on a DataArray in cases where DataArray.values @ numpy.ndarray or numpy.ndarray @ DataArray.values would work.

Suppose data_array is a DataArray with dimensions ['x', 'y'] and numpy_array is a numpy.ndarray with a compatible shape. What should data_array @ numpy_array look like? The first dimension should be labeled x, but the second dimension doesn't have a name, so we'd need to come up with one somehow (every dimension in an DataArray must have a name).

However, it appears that xarray may do some inference based aligning dimensions/coordinates... and that I need to understand this process a bit more.

Indeed, see http://xarray.pydata.org/en/stable/computation.html#broadcasting-by-dimension-name

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