home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 574215734

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/3185#issuecomment-574215734 https://api.github.com/repos/pydata/xarray/issues/3185 574215734 MDEyOklzc3VlQ29tbWVudDU3NDIxNTczNA== 5821660 2020-01-14T15:02:38Z 2020-01-14T15:02:38Z MEMBER

@naught101 Looks like those coordinates are now in the order as declared in the affine package (since rasterio >= 1.0). See also: https://rasterio.readthedocs.io/en/latest/topics/migrating-to-v1.html.

All coordinates are created correctly, so from my point of view, only the docs here have to be changed.

python from affine import Affine da = xr.open_rasterio('path_to_file.tif') transform = Affine(*da.attrs['transform']) nx, ny = da.sizes['x'], da.sizes['y'] x, y = np.meshgrid(np.arange(nx)+0.5, np.arange(ny)+0.5) * transform

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  477081946
Powered by Datasette · Queries took 83.1ms · About: xarray-datasette