xlandsat.pansharpen

Contents

xlandsat.pansharpen#

xlandsat.pansharpen(scene, panchromatic, weights=(1, 1, 0.2))[source]#

Pansharpen the red, green, and blue bands of a scene.

The pansharpened scene will have the same coordinate values of the given panchromatic band. Uses a weighted version of the Brovey Transform [Pohl_and_VanGenderen1998] to account for the smaller blue footprint in Landsat 8/9 panchromatic band, following mapbox/rio-pansharpen (MIT license).

Parameters:
Returns:

scene_sharpened (xarray.Dataset) – The pandsharpened scene including the red, green, and blue bands only. Metadata from the original scene is copied into the pandsharpened version.