home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 236544958

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/927#issuecomment-236544958 https://api.github.com/repos/pydata/xarray/issues/927 236544958 MDEyOklzc3VlQ29tbWVudDIzNjU0NDk1OA== 6213168 2016-08-01T10:26:41Z 2016-08-01T10:40:27Z MEMBER

I'm now facing the equivalent problem with broadcast(). I need to concat 3 arrays:

python a = xarray.DataArray([[1,2],[3,4]], dims=['time', 'scenario'], coords={'time': ['t1', 't2']}) b = xarray.DataArray([5,6], dims=['time'], coords={'time': ['t3', 't4']}) c = xarray.DataArray(7, coords={'time': 't5'})

I want to broadcast dimension 'scenario' and concatenate on dimension 'time'. However, I can't invoke broadcast() because 1. a and b have misaligned time 2. c has a time coord, but not a time dim - if you broadcast a and c, you will get incorrect results

Again the solution would be to have an optional parameter exclude=['time']

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