Skip to content

Commit

Permalink
DOC: Fix 2D coordinate example (pydata/xarray/issues/5005)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 authored Mar 10, 2021
1 parent b532a47 commit fa4a935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rioxarray/_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def open_rasterio(
from affine import Affine
da = xr.open_rasterio('path_to_file.tif')
transform = Affine.from_gdal(*da.attrs['transform'])
transform = da.rio.transform()
nx, ny = da.sizes['x'], da.sizes['y']
x, y = np.meshgrid(np.arange(nx)+0.5, np.arange(ny)+0.5) * transform
Expand Down

0 comments on commit fa4a935

Please sign in to comment.