home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 245186903

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
245186903 MDU6SXNzdWUyNDUxODY5MDM= 1486 boolean indexing 10137 closed 0     2 2017-07-24T19:39:42Z 2017-09-07T08:06:49Z 2017-09-07T08:06:48Z NONE      

I am trying to figure out how boolean indexing works in xarray. I have a couple of data arrays below: X_day[latitude,longitude,time] X_night[latitude,longitude,time] Rule[latitude,longitude]

I want to merge X_day and X_night as a new X based on Rule. First I make a copy of X_day to be X: X = X_day Then I tried: X[Rule==True, :] = X_night and this: X.values[Rule==True, :] = X_night.values and also this: X.where(Rule==True) = X_night None of the above assignment worked. Please help.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1486/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 2 rows from issues_id in issues_labels
  • 2 rows from issue in issue_comments
Powered by Datasette · Queries took 0.769ms · About: xarray-datasette