eemont.imagecollection.panSharpen

eemont.imagecollection.panSharpen(self, method='SFIM', qa=None, **kwargs)[source]

Apply panchromatic sharpening to each Image in the Image Collection.

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

Parameters
  • self (ee.ImageCollection [this]) – Image Collection to sharpen.

  • method (str, default="SFIM") – 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 (str | list, default=None) – One or more optional quality assessment names to apply after sharpening. Results will be stored as image properties with the pattern eemont:metric, e.g. eemont: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 Collection with all sharpenable bands sharpened to the panchromatic resolution and quality assessments run and set as properties.

Return type

ee.ImageCollection

Examples

>>> import ee, eemont
>>> ee.Authenticate()
>>> ee.Initialize()
>>> source = ee.ImageCollection("LANDSAT/LC08/C01/T1_TOA")
>>> sharp = source.panSharpen(method="HPFA", qa=["MSE", "RMSE"], maxPixels=1e13)