home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 855720969

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/3620#issuecomment-855720969 https://api.github.com/repos/pydata/xarray/issues/3620 855720969 MDEyOklzc3VlQ29tbWVudDg1NTcyMDk2OQ== 4160723 2021-06-07T08:29:15Z 2021-06-08T07:32:45Z MEMBER

We could also imagine

```python

returns a new dataset with both pixel and world (possibly lazy) coordinates

new_dataset = dataset.astro.append_world({'x': 'xw', 'y': 'yw', 'z': 'zw'})

so that we can directly select data either using the pixel coordinates...

new_dataset.sel(x=..., y=..., z=...)

...or using the world coordinates

new_dataset.sel(xw=..., yw=..., zw=...)

the WCS index would be attached to both pixel and world dataset coordinates

new_dataset <xarray.Dataset> Dimensions: (x: 100, y: 100, z: 100) Coordinates: * x (x) float64 ... * xw (x) float64 ... * y (y) float64 ... * yw (y) float64 ... * z (z) float64 ... * zw (z) float64 ... Data variables: field (x, y, z) float64 .... Indexes: x, y, z, zw, yw, zw WCSIndex ```

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