issue_comments
8 rows where issue = 271000579 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Incorrect y-coordinates for non-georeferenced data from open_rasterio · 8 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
343770118 | https://github.com/pydata/xarray/issues/1686#issuecomment-343770118 | https://api.github.com/repos/pydata/xarray/issues/1686 | MDEyOklzc3VlQ29tbWVudDM0Mzc3MDExOA== | fmaussion 10050469 | 2017-11-12T21:38:16Z | 2017-11-12T21:38:16Z | MEMBER | Testing against all files used in the rasterio test base yields following results: ```python import numpy as np import rasterio import xarray as xr from affine import Affine from glob import glob import os Test all files from rasterio's test baserdir = '/home/mowglie/Downloads/rasterio-master/tests/data/*.tif' ok = [] for path in glob(rdir): ds = xr.open_rasterio(path) rio = rasterio.open(path, mode='r')
``` Out:
At least I think that the majority of "standard" files are working properly with our current code. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Incorrect y-coordinates for non-georeferenced data from open_rasterio 271000579 | |
343766018 | https://github.com/pydata/xarray/issues/1686#issuecomment-343766018 | https://api.github.com/repos/pydata/xarray/issues/1686 | MDEyOklzc3VlQ29tbWVudDM0Mzc2NjAxOA== | maaleske 4414299 | 2017-11-12T20:42:13Z | 2017-11-12T20:42:13Z | CONTRIBUTOR | Just looking at the rasterio quickstart, it seems that it'd be easy to generate the coordinates using the Affine instance (though that is only available in Rasterio > 1.0a, with 0.36.0 you just have the tuple containing the multipliers). I think that might solve the problem though, since I would expect the sign of |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Incorrect y-coordinates for non-georeferenced data from open_rasterio 271000579 | |
343765561 | https://github.com/pydata/xarray/issues/1686#issuecomment-343765561 | https://api.github.com/repos/pydata/xarray/issues/1686 | MDEyOklzc3VlQ29tbWVudDM0Mzc2NTU2MQ== | fmaussion 10050469 | 2017-11-12T20:35:27Z | 2017-11-12T20:35:27Z | MEMBER | It looks like we could use rasterio's Affine object for this: https://stackoverflow.com/questions/27861197/how-to-i-get-the-coordinates-of-a-cell-in-a-geotif Will have a look at it |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Incorrect y-coordinates for non-georeferenced data from open_rasterio 271000579 | |
343762924 | https://github.com/pydata/xarray/issues/1686#issuecomment-343762924 | https://api.github.com/repos/pydata/xarray/issues/1686 | MDEyOklzc3VlQ29tbWVudDM0Mzc2MjkyNA== | fmaussion 10050469 | 2017-11-12T20:00:21Z | 2017-11-12T20:00:21Z | MEMBER | I'm afraid I don't know rasterio well enough to be able to take a decision here. However the fact that rasterio throws a warning when using your code above is not a good sign, and I don't think we have to take action in xarray (yet). I am however also not super happy with this bit of code here: https://github.com/pydata/xarray/blob/014b7898a65d9406a0e9af0ab7166702b6e977b3/xarray/backends/rasterio_.py#L136-L142 It works for all the cases I've encountered until now, but it feels like this logic should be available in rasterio already. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Incorrect y-coordinates for non-georeferenced data from open_rasterio 271000579 | |
341754146 | https://github.com/pydata/xarray/issues/1686#issuecomment-341754146 | https://api.github.com/repos/pydata/xarray/issues/1686 | MDEyOklzc3VlQ29tbWVudDM0MTc1NDE0Ng== | maaleske 4414299 | 2017-11-03T16:23:02Z | 2017-11-03T16:23:02Z | CONTRIBUTOR | @fmaussion Thanks!
I get the feeling there's probably something odd with rasterio here. I played around a bit and found that rasterio doesn't seem to care about the signs in the transform if the given upper left is (0,0) . Giving any of |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Incorrect y-coordinates for non-georeferenced data from open_rasterio 271000579 | |
341747311 | https://github.com/pydata/xarray/issues/1686#issuecomment-341747311 | https://api.github.com/repos/pydata/xarray/issues/1686 | MDEyOklzc3VlQ29tbWVudDM0MTc0NzMxMQ== | fmaussion 10050469 | 2017-11-03T16:01:45Z | 2017-11-03T16:01:45Z | MEMBER | OK, I will investigate but this might have to wait for next week. Also, I'll do some more georeferencing tests offline (we can easily check with external tools if what we are doing is correct or not) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Incorrect y-coordinates for non-georeferenced data from open_rasterio 271000579 | |
341746553 | https://github.com/pydata/xarray/issues/1686#issuecomment-341746553 | https://api.github.com/repos/pydata/xarray/issues/1686 | MDEyOklzc3VlQ29tbWVudDM0MTc0NjU1Mw== | maaleske 4414299 | 2017-11-03T15:59:25Z | 2017-11-03T15:59:25Z | CONTRIBUTOR | @fmaussion I've tested with both rasterio 0.36.0 and the current master branch (1.0a11), both seem to have the same behaviour. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Incorrect y-coordinates for non-georeferenced data from open_rasterio 271000579 | |
341744624 | https://github.com/pydata/xarray/issues/1686#issuecomment-341744624 | https://api.github.com/repos/pydata/xarray/issues/1686 | MDEyOklzc3VlQ29tbWVudDM0MTc0NDYyNA== | fmaussion 10050469 | 2017-11-03T15:53:05Z | 2017-11-03T15:54:00Z | MEMBER |
We don't test for correct georeferencing in the xarray codebase but I did a bunch of tests locally and it seemed to work well (at least I don't expect such a logical flaw as data being completely upside down or shifted by 2). e.g. http://xarray.pydata.org/en/latest/auto_gallery/plot_rasterio.html#sphx-glr-auto-gallery-plot-rasterio-py For your example something seems to go wrong though. What version of rasterio are you using? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Incorrect y-coordinates for non-georeferenced data from open_rasterio 271000579 |
Advanced export
JSON shape: default, array, newline-delimited, object
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]);
user 2