home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where author_association = "CONTRIBUTOR", issue = 124154674 and user = 8699967 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • snowman2 · 5 ✖

issue 1

  • Keep attrs & Add a 'keep_coords' argument to Dataset.apply · 5 ✖

author_association 1

  • CONTRIBUTOR · 5 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
304077718 https://github.com/pydata/xarray/issues/688#issuecomment-304077718 https://api.github.com/repos/pydata/xarray/issues/688 MDEyOklzc3VlQ29tbWVudDMwNDA3NzcxOA== snowman2 8699967 2017-05-25T17:55:15Z 2017-05-25T17:55:15Z CONTRIBUTOR

Strange. But I can't seem to re-produce the issue. Maybe it was on a Windows machine or maybe it is fixed now.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Keep attrs & Add a 'keep_coords' argument to Dataset.apply 124154674
304003816 https://github.com/pydata/xarray/issues/688#issuecomment-304003816 https://api.github.com/repos/pydata/xarray/issues/688 MDEyOklzc3VlQ29tbWVudDMwNDAwMzgxNg== snowman2 8699967 2017-05-25T12:57:34Z 2017-05-25T12:57:34Z CONTRIBUTOR

@shoyer, thanks for looking into it. I am resampling from 3hr data to 1hr data.

python resampled_ds = ds.resample('1H', dim='time', keep_attrs=True)

I am using it here: https://github.com/CI-WATER/gsshapy/blob/f4e5cb13c1d528021e1953859b712553a4162311/gsshapy/grid/grid_to_gssha.py#L789-L844

I ran into the issue there and had to add code to make sure the coordinates were copied.

Thanks!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Keep attrs & Add a 'keep_coords' argument to Dataset.apply 124154674
298330381 https://github.com/pydata/xarray/issues/688#issuecomment-298330381 https://api.github.com/repos/pydata/xarray/issues/688 MDEyOklzc3VlQ29tbWVudDI5ODMzMDM4MQ== snowman2 8699967 2017-05-01T13:04:16Z 2017-05-01T13:04:16Z CONTRIBUTOR

I need input data for a hydrology model in an hourly timestep. So, I use the Dataset.resample method on data from land surface models to achieve that. Then, I use a custom linear interpolation to fill in the nan's. I then write out the data to a file. It is easier to write the resampled dataset to the file with the necessary information if the x,y coordinates are not removed in the Dataset.resample method.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Keep attrs & Add a 'keep_coords' argument to Dataset.apply 124154674
298202905 https://github.com/pydata/xarray/issues/688#issuecomment-298202905 https://api.github.com/repos/pydata/xarray/issues/688 MDEyOklzc3VlQ29tbWVudDI5ODIwMjkwNQ== snowman2 8699967 2017-04-30T00:24:48Z 2017-04-30T00:24:48Z CONTRIBUTOR

You could do it in the custom callable, but it requires less expertise and fewer lines of code to add that as an option. The use case I have is land surface model output with x,y coordinates that I would like to preserve.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Keep attrs & Add a 'keep_coords' argument to Dataset.apply 124154674
297431024 https://github.com/pydata/xarray/issues/688#issuecomment-297431024 https://api.github.com/repos/pydata/xarray/issues/688 MDEyOklzc3VlQ29tbWVudDI5NzQzMTAyNA== snowman2 8699967 2017-04-26T14:43:40Z 2017-04-26T14:43:40Z CONTRIBUTOR

Is there plans for a 'keep_coords' for Dataset.resample as well?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Keep attrs & Add a 'keep_coords' argument to Dataset.apply 124154674

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 1119.476ms · About: xarray-datasette