issues: 271000579
This data as json
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
271000579 | MDU6SXNzdWUyNzEwMDA1Nzk= | 1686 | Incorrect y-coordinates for non-georeferenced data from open_rasterio | 4414299 | closed | 0 | 8 | 2017-11-03T14:39:21Z | 2018-01-26T13:50:54Z | 2018-01-26T13:50:54Z | CONTRIBUTOR | For a non-georeferenced dataset, ```python import numpy as np import rasterio from xarray import open_rasterio tmp_file = 'no_transform.tif' nx, ny, nz = 4, 3, 3 data = np.arange(nxnynz, dtype=rasterio.float32).reshape(nz, ny, nx) with rasterio.open( tmp_file, 'w', driver='GTiff', height=ny, width=nx, count=nz, dtype=rasterio.float32) as s: s.write(data) open_rasterio(tmp_file) ```
Passing
I'm not sure whether there's something amiss in the xarray coordinate calculations or the rasterio default transform logic. Looking at the code, I feel like there's some mismatch between the rasterio I'm not quite sure if the xarray code is quite correct for georefenced data, since it doesn't utilize the given coordinate transform. I don't' have files to test it with though. |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1686/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |