Skip to content

Commit f010b6e

Browse files
committed
Fix .grid call that escaped replacing to .get_grid()
1 parent 9f5f574 commit f010b6e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gridkit-py/examples/raster_operations/ndvi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@
6161
fig.colorbar(im_ndvi, ax=ax, fraction=0.022, pad=0.01)
6262
ax.set_xlabel("lon")
6363
ax.set_ylabel("lat")
64-
ax.set_title(f"NDVI of scene in the alps \n EPSG:{ndvi.grid.crs.to_epsg()}")
64+
ax.set_title(f"NDVI of scene in the alps \n EPSG:{ndvi.get_grid().crs.to_epsg()}")
6565

6666
plt.show()

gridkit-py/gridkit/tile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ def resample(self, alignment_grid, method="nearest", **interp_kwargs):
995995
tile_is_given = isinstance(alignment_grid, Tile)
996996
if tile_is_given:
997997
tile = alignment_grid
998-
alignment_grid = alignment_grid.grid
998+
alignment_grid = alignment_grid.get_grid()
999999

10001000
if self.get_grid().crs is None or alignment_grid.crs is None:
10011001
warnings.warn(

0 commit comments

Comments
 (0)