home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 787947436 and user = 40218891 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

  • yt87 · 3 ✖

issue 1

  • h5netcdf fails to decode attribute coordinates. · 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
762438483 https://github.com/pydata/xarray/issues/4822#issuecomment-762438483 https://api.github.com/repos/pydata/xarray/issues/4822 MDEyOklzc3VlQ29tbWVudDc2MjQzODQ4Mw== yt87 40218891 2021-01-18T19:39:34Z 2021-01-18T19:39:34Z NONE

You might be right. Adding -k nc4 works when string is removed from attribute specification. If it is present, the error is as before: AttributeError: 'numpy.ndarray' object has no attribute 'split'.

However, after changing my AWS script to ``` import s3fs import xarray as xr

s3 = s3fs.S3FileSystem(anon=True) s3path = 's3://wrf-se-ak-ar5/gfdl/hist/daily/1988/WRFDS_1988-04-23.nc'

ds = xr.open_dataset(s3.open(s3path), engine='scipy') print(ds) ` the error isTypeError: Error: None is not a valid NetCDF 3 file``.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  h5netcdf fails to decode attribute coordinates. 787947436
762423707 https://github.com/pydata/xarray/issues/4822#issuecomment-762423707 https://api.github.com/repos/pydata/xarray/issues/4822 MDEyOklzc3VlQ29tbWVudDc2MjQyMzcwNw== yt87 40218891 2021-01-18T19:03:19Z 2021-01-18T19:03:19Z NONE

This is how I did it:

``` $ ncdump /tmp/x.nc netcdf x { dimensions: x = 1 ; y = 1 ; variables: int foo(y, x) ; foo:coordinates = "x y" ; data:

foo = 0 ; } $ rm x.nc $ ncgen -o x.nc < x.cdl $ python -c "import xarray as xr; ds = xr.open_dataset('/tmp/x.nc', engine='h5netcdf'); print(ds)" ``` Engine netcdf4 works fine, with string or without.

My original code retrieving data from AWS: ``` import s3fs import xarray as xr

s3 = s3fs.S3FileSystem(anon=True) s3path = 's3://wrf-se-ak-ar5/gfdl/hist/daily/1988/WRFDS_1988-04-23.nc'

ds = xr.open_dataset(s3.open(s3path)) print(ds) ` Addingdecode_cf=False`` is a workaround. All attributes are arrays:

Attributes: contact: ['rtladerjr@alaska.edu'] info: ['Alaska CASC'] data: ['Downscaled GFDL-CM3'] format: ['version 2'] date: ['Mon Jul 1 15:17:16 AKDT 2019']

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  h5netcdf fails to decode attribute coordinates. 787947436
762376418 https://github.com/pydata/xarray/issues/4822#issuecomment-762376418 https://api.github.com/repos/pydata/xarray/issues/4822 MDEyOklzc3VlQ29tbWVudDc2MjM3NjQxOA== yt87 40218891 2021-01-18T17:12:53Z 2021-01-18T17:19:53Z NONE

Dropping string changes error to Unable to open file (file signature not found). This issue popped up while reading data from https://registry.opendata.aws/wrf-se-alaska-snap/

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  h5netcdf fails to decode attribute coordinates. 787947436

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