home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where user = 191850 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

  • ecarrara · 2 ✖

issue 1

  • Add `scales` attributes to Dataset created in open_rasterio (#3012) 2

author_association 1

  • CONTRIBUTOR 2
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
501075199 https://github.com/pydata/xarray/pull/3013#issuecomment-501075199 https://api.github.com/repos/pydata/xarray/issues/3013 MDEyOklzc3VlQ29tbWVudDUwMTA3NTE5OQ== ecarrara 191850 2019-06-12T00:37:24Z 2019-06-12T00:37:24Z CONTRIBUTOR

thank you @dcherian!

I added offsets, units, descriptions attributes. The other attributes (res, nodata, crs, transform, bounds and res) were already available.

mask_flag_enums is a list of tuples, I have tried to add this attribute too but the TestRasterio::test_serialization fails with the message:

```python

??? E ValueError: multi-dimensional array attributes not supported

netCDF4/_netCDF4.pyx:1529: ValueError ```

@fmaussion any feedback is welcome!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add `scales` attributes to Dataset created in open_rasterio (#3012) 454337592
501014979 https://github.com/pydata/xarray/pull/3013#issuecomment-501014979 https://api.github.com/repos/pydata/xarray/issues/3013 MDEyOklzc3VlQ29tbWVudDUwMTAxNDk3OQ== ecarrara 191850 2019-06-11T20:42:37Z 2019-06-11T20:42:37Z CONTRIBUTOR

Does rasterio define a set of valid attributes or can you assign arbitrary attributes? If so, should we read and assign all attributes as we do for netCDF files?

@dcherian the attributes are pre-defined. Looking at the source code[1] of rasterio I found this list:

property nodatavals # Nodata values for each band property nodata # The dataset's single nodata value property mask_flag_enums # Sets of flags describing the sources of band masks. property crs # The dataset's coordinate reference system property descriptions # Descriptions for each dataset band property transform # The dataset's georeferencing transformation matrix property offsets # Raster offset for each dataset band property scales # Raster scale for each dataset band property units # A list of str: one units string for each dataset band property bounds # Returns the lower left and upper right bounds of the dataset property res # Returns the (width, height) of pixels in the units of its

I belive that the attributes not handled yet by xarray are: scales, offsets and units.

[1] - https://github.com/mapbox/rasterio/blob/1.0.24/rasterio/_base.pyx

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add `scales` attributes to Dataset created in open_rasterio (#3012) 454337592

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