cogeotiff / rio-tiler

User friendly Rasterio plugin to read raster datasets.
https://cogeotiff.github.io/rio-tiler/
BSD 3-Clause "New" or "Revised" License
502 stars 106 forks source link

rename resampling option in xarrayReader #673

Closed vincentsarago closed 7 months ago

vincentsarago commented 7 months ago

deprecate resampling_method in rio_tiler.io.xarray.XarrayReader method and add reproject_method (to match the rio_tiler.io.Reader options)

# before
with XarrayReader(data) as dst:
    img = dst.tile(0, 0, 1, resampling_method="cubic")

# now
with XarrayReader(data) as dst:
    img_cubic = dst.tile(0, 0, 1, reproject_method="cubic")