home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "NONE" and issue = 841012076 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • MaxDragonheart 2
  • hamiddashti 1

issue 1

  • Losing data when add a raster to a dataset · 3 ✖

author_association 1

  • NONE · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
832793635 https://github.com/pydata/xarray/issues/5075#issuecomment-832793635 https://api.github.com/repos/pydata/xarray/issues/5075 MDEyOklzc3VlQ29tbWVudDgzMjc5MzYzNQ== hamiddashti 5567953 2021-05-05T15:40:30Z 2021-05-05T15:40:30Z NONE

A "close enough" option can take care of issues such as in xarray.where in situations where the coordinates are very close but not exactly matched (here) (e.g. due to Geotif roudning, here ) .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Losing data when add a raster to a dataset 841012076
808747264 https://github.com/pydata/xarray/issues/5075#issuecomment-808747264 https://api.github.com/repos/pydata/xarray/issues/5075 MDEyOklzc3VlQ29tbWVudDgwODc0NzI2NA== MaxDragonheart 18444902 2021-03-27T15:10:59Z 2021-03-27T15:10:59Z NONE

Below my code ``` import geopandas import rioxarray from geocube.api.core import make_geocube

Read input_vector and create a GeoDataFrame

vector_in = geopandas.read_file(input_vector)

Read raster data

raster_in = rioxarray.open_rasterio(input_raster)

Create GeoCube

out_grid = make_geocube( vector_data=vector_in, measurements=["id"], like=raster_in, ) out_grid.to_netcdf("rasterized_vector.nc")

Add raster_in to geocube

out_grid["process_value"] = raster_in out_grid.to_netcdf("out_grid_process_value.nc") ``` Here there are two netCDF with output data.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Losing data when add a raster to a dataset 841012076
808023327 https://github.com/pydata/xarray/issues/5075#issuecomment-808023327 https://api.github.com/repos/pydata/xarray/issues/5075 MDEyOklzc3VlQ29tbWVudDgwODAyMzMyNw== MaxDragonheart 18444902 2021-03-26T08:08:10Z 2021-03-26T08:08:10Z NONE

All do you need is on the first linked issue, so here. You can find QGIS project with data example.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Losing data when add a raster to a dataset 841012076

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