home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 535969947

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/3343#issuecomment-535969947 https://api.github.com/repos/pydata/xarray/issues/3343 535969947 MDEyOklzc3VlQ29tbWVudDUzNTk2OTk0Nw== 2448579 2019-09-27T14:44:17Z 2019-09-27T14:44:17Z MEMBER

More generally, this is about applying operations with non dimensional coordinates which need not be 1D. Thinking about API, how about adding a coord kwarg?

da.differentiate(dim="nx", coord="x")

This says use np.diff on da along dimension nx and divide by spacing calculated by np.diff on da.x along dimension nx

If x is 1D, then da.differentiate(coord="x") is equivalent to da.differentiate(dim="nx", coord="x") which is your proposal. i think this is cleaner and more explicit than automatically mapping 1D nondimensional coords to dimensions.

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