home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

6 rows where issue = 1143489702 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 4

  • dcherian 2
  • gcaria 2
  • crawld 1
  • snowman2 1

author_association 3

  • CONTRIBUTOR 3
  • MEMBER 2
  • NONE 1

issue 1

  • `Dataset.to_zarr()` does not preserve CRS information · 6 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1230970216 https://github.com/pydata/xarray/issues/6288#issuecomment-1230970216 https://api.github.com/repos/pydata/xarray/issues/6288 IC_kwDOAMm_X85JXx1o crawld 7037909 2022-08-29T23:26:58Z 2022-08-29T23:40:44Z NONE

i had the same problem (missing crs) but adding decode_coords='all' did not fix it. the difference in my case from the above minimal example might be i have several variables in the zarr group. the fix was to add the grid_mapping attribute to each variable:

z['group1']['var1'].attrs['grid_mapping'] = 'spatial_ref'

once i did this (and decode_coords='all') it worked.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `Dataset.to_zarr()` does not preserve CRS information 1143489702
1073495811 https://github.com/pydata/xarray/issues/6288#issuecomment-1073495811 https://api.github.com/repos/pydata/xarray/issues/6288 IC_kwDOAMm_X84__D8D dcherian 2448579 2022-03-21T05:19:48Z 2022-03-21T05:19:48Z MEMBER

That would be great. Thanks @gcaria

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `Dataset.to_zarr()` does not preserve CRS information 1143489702
1073312888 https://github.com/pydata/xarray/issues/6288#issuecomment-1073312888 https://api.github.com/repos/pydata/xarray/issues/6288 IC_kwDOAMm_X84_-XR4 gcaria 44147817 2022-03-20T19:04:45Z 2022-03-20T19:04:45Z CONTRIBUTOR

By the way, the docstring of open_zarr fails to mention that decode_coords could be a string too (and what the accepted string values mean)

https://github.com/pydata/xarray/blob/fed852073eee883c0ed1e13e28e508ff0cf9d5c1/xarray/backends/zarr.py#L687-L689

Should I open a separate issue for this?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `Dataset.to_zarr()` does not preserve CRS information 1143489702
1071510084 https://github.com/pydata/xarray/issues/6288#issuecomment-1071510084 https://api.github.com/repos/pydata/xarray/issues/6288 IC_kwDOAMm_X84_3fJE gcaria 44147817 2022-03-17T21:20:02Z 2022-03-17T21:20:02Z CONTRIBUTOR

Thanks @snowman2, that makes the CRS readable

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `Dataset.to_zarr()` does not preserve CRS information 1143489702
1069088984 https://github.com/pydata/xarray/issues/6288#issuecomment-1069088984 https://api.github.com/repos/pydata/xarray/issues/6288 IC_kwDOAMm_X84_uQDY snowman2 8699967 2022-03-16T12:46:15Z 2022-03-16T12:46:15Z CONTRIBUTOR

https://corteva.github.io/rioxarray/stable/getting_started/getting_started.html#xarray

Are you able to use decode_coords="all" when opening?

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `Dataset.to_zarr()` does not preserve CRS information 1143489702
1068722742 https://github.com/pydata/xarray/issues/6288#issuecomment-1068722742 https://api.github.com/repos/pydata/xarray/issues/6288 IC_kwDOAMm_X84_s2o2 dcherian 2448579 2022-03-16T04:34:40Z 2022-03-16T04:34:40Z MEMBER

cc @snowman2

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `Dataset.to_zarr()` does not preserve CRS information 1143489702

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 16.748ms · About: xarray-datasette
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows