home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 366740505

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/1914#issuecomment-366740505 https://api.github.com/repos/pydata/xarray/issues/1914 366740505 MDEyOklzc3VlQ29tbWVudDM2Njc0MDUwNQ== 10928117 2018-02-19T16:20:15Z 2018-02-19T16:23:31Z NONE

Let me give a bit of a background what I would like to do:

  1. Create an empty Dataset of coordinates I want to explore, i.e. two np.arrays x and y, and two scalars a and b.
  2. Generate an list of the Cartesian product of all the coordinates, i.e. [ {'x': -1, 'y': 0, 'a': 1, 'b': 5}, ...] (data format doesn't really matter).
  3. For each item of the iterator compute some function: f = f(x, y, a, b). In principle this function can be expensive to compute, therefore I'd compute it for each item of list from 2. separately on the cluster.
  4. "merge" it all together into a single xarray object

In principle f should be allowed to return e.g. np.array. An related issue in holoviews and the notebook with my initial attempt. In the linked notebook I managed to achieve the goal however without starting with an xarray object containing coordinates. Also combining the data seems a bit inefficient as it takes more time than generating it for a larger datasets.

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