Skip to content

Commit

Permalink
Changed resampling method from fixed bilinear to flexible options.
Browse files Browse the repository at this point in the history
  • Loading branch information
muelj12 committed Jun 17, 2024
1 parent 8e001d0 commit 6717234
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion eoreader/products/optical/s3_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ def _read_band(
self,
band_path: AnyPathType,
band: BandNames = None,
resampling_method: Resampling = None,
pixel_size: Union[tuple, list, float] = None,
size: Union[list, tuple] = None,
**kwargs,
Expand All @@ -463,11 +464,15 @@ def _read_band(
xr.DataArray: Band xarray
"""

if resampling_method is None:
resampling_method = Resampling.bilinear

band = utils.read(
band_path,
pixel_size=pixel_size,
size=size,
resampling=Resampling.bilinear,
resampling_method=resampling_method,
**kwargs,
)

Expand Down

0 comments on commit 6717234

Please sign in to comment.