home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 235687353 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • ocefpaf 1
  • shoyer 1

author_association 2

  • CONTRIBUTOR 1
  • MEMBER 1

issue 1

  • Expected S1 dtype in datarray but got float64 · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
327023000 https://github.com/pydata/xarray/issues/1452#issuecomment-327023000 https://api.github.com/repos/pydata/xarray/issues/1452 MDEyOklzc3VlQ29tbWVudDMyNzAyMzAwMA== ocefpaf 950575 2017-09-04T20:13:38Z 2017-09-04T20:13:38Z CONTRIBUTOR

Totally missed your answer here @shoyer. Thanks!

The workaround is fine and the _FillValue =-1 seems wrong to me. Pinging @rsignell-usgs who is know more about the conventions and was interested into this in the first place.

Closing this as I don't think anything is broken with xarray.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Expected S1 dtype in datarray but got float64 235687353
309171587 https://github.com/pydata/xarray/issues/1452#issuecomment-309171587 https://api.github.com/repos/pydata/xarray/issues/1452 MDEyOklzc3VlQ29tbWVudDMwOTE3MTU4Nw== shoyer 1217238 2017-06-17T00:19:32Z 2017-06-17T00:19:32Z MEMBER

It looks like this variable has an attribute _FillValue = -1, which isn't a valid string value: In [18]: ds['tidenames'].encoding Out[18]: {'_FillValue': -1, 'dtype': dtype('S1'), 'original_shape': (38, 64), 'source': 'http://geoport.whoi.edu/thredds/dodsC/usgs/vault0/models/tides/vdatum_gulf_of_maine/adcirc54_38_orig.nc'}

Potentially we could update xarray's CF conventions code to handle inconsistent dtypes and _FillValue attributes, or possibly this file should be fixed instead.

A work around is to set mask_and_scale=False: ``` In [19]: ds = xr.open_dataset(url, mask_and_scale=False)

In [21]: ds['tidenames'] Out[21]: <xarray.DataArray 'tidenames' (ntides: 38)> array([b'STEADY ', b'MN ', b'SM ', b'K1 ', b'O1 ', b'P1 ', b'Q1 ', b'SO1 ', b'MNS2 ', b'2MS2 ', b'N2 ', b'M2 ', b'2MN2 ', b'S2 ', b'K2 ', b'MSN2 ', b'2SM2 ', b'MO3 ', b'SO3/MK3', b'SK3 ', b'N4 ', b'3MS4 ', b'MN4 ', b'M4 ', b'3MN4 ', b'MS4 ', b'2MSN4 ', b'2NM6 ', b'2MN6 ', b'M6 ', b'MSN6 ', b'2MS6 ', b'2SM6 ', b'2(MN)8 ', b'3MN8 ', b'M8 ', b'2MSN8 ', b'3MS8 '], dtype='|S64') Dimensions without coordinates: ntides Attributes: long_name: Tide Constituent missing_value: -1 standard_name: tide_constituent ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Expected S1 dtype in datarray but got float64 235687353

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