home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 314862336

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/1475#issuecomment-314862336 https://api.github.com/repos/pydata/xarray/issues/1475 314862336 MDEyOklzc3VlQ29tbWVudDMxNDg2MjMzNg== 25473287 2017-07-12T18:50:02Z 2017-07-13T01:48:32Z NONE

Probably the simplest option is to use structured dtypes, which should already work with the existing version of xarray, e.g.,

Thanks, that's a nice trick! Supporting da.x_bounds['start'] will definitely be helpful!

However, I am still concerned about 2D boundaries. Using the structured data type, 2D bounds will be an array of size (Nx,Ny,4) instead of (Nx+1,Ny+1). Although this matches the CF convention, it takes 4x memory and needs to be converted back to (Nx+1,Ny+1) for pcolormesh(). Not a big problem though. I will be happy to go this way if (Nx+1,Ny+1)-sized bounds cannot be implemented.

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