home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where user = 1411854 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 2

  • Enable Append/concat to existing zarr datastore 2
  • Can't decode cf_variable 1

user 1

  • leroygr · 3 ✖

author_association 1

  • NONE 3
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
447377321 https://github.com/pydata/xarray/issues/2606#issuecomment-447377321 https://api.github.com/repos/pydata/xarray/issues/2606 MDEyOklzc3VlQ29tbWVudDQ0NzM3NzMyMQ== leroygr 1411854 2018-12-14T16:28:29Z 2018-12-14T16:28:29Z NONE

Sorry my bad, I mis-used the function. The encoding parameters must be in the attrs and not encoding argument:

```python

encoded_var = xr.Variable(dims=('latitude','longitude'), data=dask.array.from_array([[-11608, 9419, 27983, 32767, 1306], [ 24657, 27490, 12354, 13565, -31678], [ 23286, 19197, -425, -17866, -2387], [ 8284, 22922, 25428, 28584, 29309], [ 21439, 26654, 15559, -2752, -32766]], chunks=(5,5)), attrs=OrderedDict([('long_name', 'Land-sea mask'), ('standard_name', 'land_binary_mask'), ('units', '(0 - 1)'), ('_FillValue', -32767), ('dtype', dtype('int16')), ('scale_factor', 1.0576998063464478e-07), ('add_offset', 0.9965342350445446) ]), encoding={'chunks': (5, 5), } )

xr.conventions.decode_cf_variable('l',encoded_var).compute() <xarray.Variable (latitude: 5, longitude: 5)> array([[0.995306, 0.99753 , 0.999494, 1. , 0.996672], [0.999142, 0.999442, 0.997841, 0.997969, 0.993184], [0.998997, 0.998565, 0.996489, 0.994645, 0.996282], [0.99741 , 0.998959, 0.999224, 0.999558, 0.999634], [0.998802, 0.999353, 0.99818 , 0.996243, 0.993069]]) Attributes: long_name: Land-sea mask standard_name: land_binary_mask units: (0 - 1) dtype: int16 ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Can't decode cf_variable 391168098
442055522 https://github.com/pydata/xarray/issues/2022#issuecomment-442055522 https://api.github.com/repos/pydata/xarray/issues/2022 MDEyOklzc3VlQ29tbWVudDQ0MjA1NTUyMg== leroygr 1411854 2018-11-27T13:20:33Z 2018-11-27T13:20:33Z NONE

Would be indeed really nice to get this built-in into xarray, but that is just a matter of patience I guess :)

Patience...or action. Anyone is welcome and encouraged to submit a pull request on this topic. Xarray is a volunteer effort.

Obviously. I'm just new to Zarr so a bit early to contribute to Xarray on that topic.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Enable Append/concat to existing zarr datastore 309227775
441997049 https://github.com/pydata/xarray/issues/2022#issuecomment-441997049 https://api.github.com/repos/pydata/xarray/issues/2022 MDEyOklzc3VlQ29tbWVudDQ0MTk5NzA0OQ== leroygr 1411854 2018-11-27T09:55:10Z 2018-11-27T09:55:10Z NONE

My use case for this is appending Argo float data to an existing zarr store. At the moment I have 800+ netcdf files that need transforming before they can be added or read by xarray in *.nc type read. At the moment I read the first transform it and add to a zarr sort using .to_zarr. Then I proceed to read the next files and append each variable to zarr using zarr append function.

This is probably not a good way to go but all that I could figure at the moment.

@NickMortimer would you have snipped for appending xarray objects to existing zarr dataset?

Would be indeed really nice to get this built-in into xarray, but that is just a matter of patience I guess :)

Thanks! Greg

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Enable Append/concat to existing zarr datastore 309227775

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 15.615ms · About: xarray-datasette