home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 264737209

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/1152#issuecomment-264737209 https://api.github.com/repos/pydata/xarray/issues/1152 264737209 MDEyOklzc3VlQ29tbWVudDI2NDczNzIwOQ== 10050469 2016-12-04T22:35:54Z 2016-12-04T22:35:54Z MEMBER

I think it's fine. Coordinates sometimes need to be defined by paired coords too:

python import xarray as xr import numpy as np lon, lat = np.meshgrid(np.linspace(-20, 20, 5), np.linspace(0, 30, 4)) da = xr.DataArray(np.arange(20).reshape(4, 5), dims=['y', 'x'], coords = {'lat': (('y', 'x'), lat), 'lon': (('y', 'x'), lon)}) da.isel(x=2)['lat'] <xarray.DataArray 'lat' (y: 4)> array([ 0., 10., 20., 30.]) Coordinates: lon (y) float64 0.0 0.0 0.0 0.0 lat (y) float64 0.0 10.0 20.0 30.0 * y (y) int64 0 1 2 3 x int64 2

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