home / github

Menu
  • Search all tables
  • GraphQL API

issues

Table actions
  • GraphQL API for issues

1 row where state = "closed" and user = 3106851 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

type 1

  • issue 1

state 1

  • closed · 1 ✖

repo 1

  • xarray 1
id node_id number title user state locked assignee milestone comments created_at updated_at ▲ closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
491719758 MDU6SXNzdWU0OTE3MTk3NTg= 3299 swap dimensions with multi-dimensional coordinates pascalgross 3106851 closed 0     4 2019-09-10T14:44:39Z 2019-09-11T20:47:29Z 2019-09-11T08:56:24Z NONE      

Hi, This is a usage question. I've got some GRIB weather data, loaded with cfgrib into xarray.

<xarray.Dataset> Dimensions: (x: 421, y: 461) Coordinates: time datetime64[ns] 2015-05-10T12:00:00 step timedelta64[ns] 00:00:00 heightAboveGround int64 10 latitude (y, x) float64 44.77 44.77 44.77 ... 56.14 56.14 56.14 longitude (y, x) float64 2.976 3.011 3.046 ... 19.75 19.8 19.84 valid_time datetime64[ns] 2015-05-10T12:00:00 Dimensions without coordinates: x, y Data variables: u10 (y, x) float32 ... v10 (y, x) float32 ... si10 (y, x) float32 ... Attributes: GRIB_edition: 2 GRIB_centre: edzw GRIB_centreDescription: Offenbach GRIB_subCentre: 255 Conventions: CF-1.7 institution: Offenbach

The dimension is x,y. If I want to export this to GeoTIFF using rioxarray, I get the wrong results as the dimensions should be latitude/longitude, not x/y. Is there any way to "transform" the data or something like this.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/3299/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed xarray 13221727 issue

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issues] (
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [number] INTEGER,
   [title] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [state] TEXT,
   [locked] INTEGER,
   [assignee] INTEGER REFERENCES [users]([id]),
   [milestone] INTEGER REFERENCES [milestones]([id]),
   [comments] INTEGER,
   [created_at] TEXT,
   [updated_at] TEXT,
   [closed_at] TEXT,
   [author_association] TEXT,
   [active_lock_reason] TEXT,
   [draft] INTEGER,
   [pull_request] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [state_reason] TEXT,
   [repo] INTEGER REFERENCES [repos]([id]),
   [type] TEXT
);
CREATE INDEX [idx_issues_repo]
    ON [issues] ([repo]);
CREATE INDEX [idx_issues_milestone]
    ON [issues] ([milestone]);
CREATE INDEX [idx_issues_assignee]
    ON [issues] ([assignee]);
CREATE INDEX [idx_issues_user]
    ON [issues] ([user]);
Powered by Datasette · Queries took 30.454ms · About: xarray-datasette