geetools.Image.ImageAccessor.panSharpen#

geetools.Image.ImageAccessor.panSharpen(method='SFIM', qa='', **kwargs)#

Apply panchromatic sharpening to the Image.

Optionally, run quality assessments between the original and sharpened Image to measure spectral distortion and set results as properties of the sharpened Image.

Parameters: method: The sharpening algorithm to apply. Current options are “SFIM” (Smoothing Filter-based Intensity Modulation), “HPFA” (High Pass Filter Addition), “PCS” (Principal Component Substitution), and “SM” (simple mean). Different sharpening methods will produce different quality sharpening results in different scenarios. qa: One or more optional quality assessment names to apply after sharpening. Results will be stored as image properties with the pattern geetools:metric, e.g. geetools:RMSE. **kwargs: Keyword arguments passed to ee.Image.reduceRegion() such as “geometry”, “maxPixels”, “bestEffort”, etc. These arguments are only used for PCS sharpening and quality assessments.

Returns:

The Image with all sharpenable bands sharpened to the panchromatic resolution and quality assessments run and set as properties.

Parameters:
  • method (str)

  • qa (str)

Return type:

ee.Image

Examples

import ee
import geetools

ee.Initialize()

source = ee.Image("LANDSAT/LC08/C01/T1_TOA/LC08_047027_20160819")
sharp = source.panSharpen(method="HPFA", qa=["MSE", "RMSE"], maxPixels=1e13)