home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

11 rows where issue = 454337592 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 6

  • dcherian 5
  • ecarrara 2
  • shoyer 1
  • fmaussion 1
  • codecov[bot] 1
  • pep8speaks 1

author_association 3

  • MEMBER 7
  • CONTRIBUTOR 2
  • NONE 2

issue 1

  • Add `scales` attributes to Dataset created in open_rasterio (#3012) · 11 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
510127083 https://github.com/pydata/xarray/pull/3013#issuecomment-510127083 https://api.github.com/repos/pydata/xarray/issues/3013 MDEyOklzc3VlQ29tbWVudDUxMDEyNzA4Mw== dcherian 2448579 2019-07-10T16:09:29Z 2019-07-10T16:09:29Z MEMBER

Thanks @ecarrara !

{
    "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
509772022 https://github.com/pydata/xarray/pull/3013#issuecomment-509772022 https://api.github.com/repos/pydata/xarray/issues/3013 MDEyOklzc3VlQ29tbWVudDUwOTc3MjAyMg== codecov[bot] 22429695 2019-07-09T19:18:05Z 2019-07-09T19:27:19Z NONE

Codecov Report

Merging #3013 into master will increase coverage by 0.49%. The diff coverage is 75%.

```diff @@ Coverage Diff @@

master #3013 +/-

========================================== + Coverage 92.16% 92.66% +0.49%
========================================== Files 63 63
Lines 12787 12795 +8
Branches 2906 2910 +4
========================================== + Hits 11785 11856 +71
+ Misses 688 622 -66
- Partials 314 317 +3 ```

{
    "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
509769620 https://github.com/pydata/xarray/pull/3013#issuecomment-509769620 https://api.github.com/repos/pydata/xarray/issues/3013 MDEyOklzc3VlQ29tbWVudDUwOTc2OTYyMA== shoyer 1217238 2019-07-09T19:11:44Z 2019-07-09T19:11:44Z MEMBER

I fixed up the merge. Let's just make sure tests pass...

{
    "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
501651662 https://github.com/pydata/xarray/pull/3013#issuecomment-501651662 https://api.github.com/repos/pydata/xarray/issues/3013 MDEyOklzc3VlQ29tbWVudDUwMTY1MTY2Mg== pep8speaks 24736507 2019-06-13T10:47:12Z 2019-07-09T19:11:29Z NONE

Hello @ecarrara! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2019-07-09 19:11:28 UTC
{
    "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
506409703 https://github.com/pydata/xarray/pull/3013#issuecomment-506409703 https://api.github.com/repos/pydata/xarray/issues/3013 MDEyOklzc3VlQ29tbWVudDUwNjQwOTcwMw== dcherian 2448579 2019-06-27T16:05:31Z 2019-06-27T16:05:31Z MEMBER

OK let's remove the mask_flag_enums bits then. I noticed that there's a binary .idx file that was added to. Is that needed?

{
    "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
501892946 https://github.com/pydata/xarray/pull/3013#issuecomment-501892946 https://api.github.com/repos/pydata/xarray/issues/3013 MDEyOklzc3VlQ29tbWVudDUwMTg5Mjk0Ng== dcherian 2448579 2019-06-13T21:54:11Z 2019-06-13T21:54:11Z MEMBER

Yeah I think @ecarrara found a workaround.

@ecarrara You should also add a note to whats-new and give yourself credit.

{
    "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
501884771 https://github.com/pydata/xarray/pull/3013#issuecomment-501884771 https://api.github.com/repos/pydata/xarray/issues/3013 MDEyOklzc3VlQ29tbWVudDUwMTg4NDc3MQ== fmaussion 10050469 2019-06-13T21:25:32Z 2019-06-13T21:25:32Z MEMBER

Thanks @ecarrara !

but the TestRasterio::test_serialization fails

This is not the case anymore, right? This test is here to ensure that the dataarrays we are creating with open_rasterio are compatible with the NetCDF model. I think it is good to try to keep it that way.

{
    "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
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
501030000 https://github.com/pydata/xarray/pull/3013#issuecomment-501030000 https://api.github.com/repos/pydata/xarray/issues/3013 MDEyOklzc3VlQ29tbWVudDUwMTAzMDAwMA== dcherian 2448579 2019-06-11T21:28:20Z 2019-06-11T21:28:20Z MEMBER

I think we should read and expose all those attributes.

@ecarrara are you up for expanding the scope of your PR? Also, I see you're a "first-time contributor". Welcome! and thanks for contributing!

ping @fmaussion for feedback.

{
    "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
500872911 https://github.com/pydata/xarray/pull/3013#issuecomment-500872911 https://api.github.com/repos/pydata/xarray/issues/3013 MDEyOklzc3VlQ29tbWVudDUwMDg3MjkxMQ== dcherian 2448579 2019-06-11T14:41:18Z 2019-06-11T14:41:18Z MEMBER

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?

{
    "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 316.802ms · About: xarray-datasette