home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 782440858 and user = 10194086 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

  • mathause · 2 ✖

issue 1

  • Opening a tiff with scale_factor/add_offset attrs then saving as zarr and opening causes a UFuncTypeError · 2 ✖

author_association 1

  • MEMBER 2
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
761141874 https://github.com/pydata/xarray/issues/4784#issuecomment-761141874 https://api.github.com/repos/pydata/xarray/issues/4784 MDEyOklzc3VlQ29tbWVudDc2MTE0MTg3NA== mathause 10194086 2021-01-15T19:25:25Z 2021-01-15T19:25:25Z MEMBER

@fmaussion - do you have an opinion here?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Opening a tiff with scale_factor/add_offset attrs then saving as zarr and opening causes a UFuncTypeError 782440858
757791198 https://github.com/pydata/xarray/issues/4784#issuecomment-757791198 https://api.github.com/repos/pydata/xarray/issues/4784 MDEyOklzc3VlQ29tbWVudDc1Nzc5MTE5OA== mathause 10194086 2021-01-11T09:27:49Z 2021-01-11T09:27:49Z MEMBER

The scale factor is already a string in img.attrs

```python img.attrs["scale_factor"]

returns '0.0001'

```

The attrs are assigned without making any change

https://github.com/pydata/xarray/blob/5296ed18272a856d478fbbb3d3253205508d1c2d/xarray/backends/rasterio_.py#L337

So I think there is nothing going "wrong" - but maybe they should be converted anyways? I am not familiar with tif files - do they follow cf-conventions? Can they save meta only as string? Or is that wrong in your source file?

There is also

python img.attrs["scales"] (0.0001,)

https://github.com/pydata/xarray/blob/5296ed18272a856d478fbbb3d3253205508d1c2d/xarray/backends/rasterio_.py#L310

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Opening a tiff with scale_factor/add_offset attrs then saving as zarr and opening causes a UFuncTypeError 782440858

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