home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "MEMBER" and issue = 422903285 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • shoyer 3

issue 1

  • to_netcdf() fails to write if input is read from netcdf3_classic · 3 ✖

author_association 1

  • MEMBER · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
475487497 https://github.com/pydata/xarray/issues/2822#issuecomment-475487497 https://api.github.com/repos/pydata/xarray/issues/2822 MDEyOklzc3VlQ29tbWVudDQ3NTQ4NzQ5Nw== shoyer 1217238 2019-03-22T04:08:32Z 2019-03-22T04:08:32Z MEMBER

I can reproduce this with libnetcdf 4.6.2.

It looks like this problem is associated with having a _NCProperties attribute on a netCDF3 file: ```

netCDF4.Dataset('some_netcdf_classic_file_simple.nc') <class 'netCDF4._netCDF4.Dataset'> root group (NETCDF3_CLASSIC data model, file format NETCDF3): _NCProperties: version=1|netcdflibversion=4.6.1|hdf5libversion=1.8.20 Conventions: CF-1.5 featureType: timeSeries NCO: netCDF Operators version 4.7.5 (Homepage = http://nco.sf.net, Code = http://github.com/nco/nco) nco_openmp_thread_number: 1 dimensions(sizes): feature_id(1) variables(dimensions): >i4 Q_TYPE(feature_id), >f4 lat(feature_id), >f4 lon(feature_id) groups: ```

This appears to be fixed in libnetcdf 4.6.3 (https://github.com/Unidata/netcdf-c/issues/803), if you can upgrade to that version.

In the meantime, you can manually delete the _NCProperties attribute, e.g., del data.attrs['_NCProperties']

Out of curiosity, where did this netCDF file come from?

{
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 1,
    "rocket": 0,
    "eyes": 0
}
  to_netcdf() fails to write if input is read from netcdf3_classic 422903285
474871120 https://github.com/pydata/xarray/issues/2822#issuecomment-474871120 https://api.github.com/repos/pydata/xarray/issues/2822 MDEyOklzc3VlQ29tbWVudDQ3NDg3MTEyMA== shoyer 1217238 2019-03-20T15:02:22Z 2019-03-20T15:02:22Z MEMBER

OK, in that case please provide a full example that I can run.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  to_netcdf() fails to write if input is read from netcdf3_classic 422903285
474641356 https://github.com/pydata/xarray/issues/2822#issuecomment-474641356 https://api.github.com/repos/pydata/xarray/issues/2822 MDEyOklzc3VlQ29tbWVudDQ3NDY0MTM1Ng== shoyer 1217238 2019-03-20T00:54:34Z 2019-03-20T00:54:43Z MEMBER

When you leave the with context, the original file is automatically closed.

But something like either of these should work: with xr.open_dataset('some_netcdf_classic_file') as ds: data = ds # do something with data data.to_netcdf('some_new_file', 'w') or ``` with xr.open_dataset('some_netcdf_classic_file') as ds: data = ds.load()

do something with data

data.to_netcdf('some_new_file', 'w') ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  to_netcdf() fails to write if input is read from netcdf3_classic 422903285

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