home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 277576684

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/1249#issuecomment-277576684 https://api.github.com/repos/pydata/xarray/issues/1249 277576684 MDEyOklzc3VlQ29tbWVudDI3NzU3NjY4NA== 5635139 2017-02-06T03:04:02Z 2017-02-06T03:04:02Z MEMBER

I agree that outcome isn't what I would have expected. If you put the input into a DataArray first, this performs as expected.

```python In [5]: lat = np.random.rand(50000) * 180 - 90 ...: lon = np.random.rand(50000) * 360 - 180 ...: d = xr.Dataset({'latitude':xr.DataArray(lat), 'longitude':lon}) ...: ...:

In [6]: d Out[6]: <xarray.Dataset> Dimensions: (dim_0: 50000, longitude: 50000) Coordinates: * longitude (longitude) float64 -80.73 -118.8 88.66 -132.1 -74.87 27.2 ... Dimensions without coordinates: dim_0 Data variables: latitude (dim_0) float64 47.59 26.57 30.56 -12.52 65.44 70.32 84.45 ... ```

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