msi2slstr.transform.resizing

Classes

NearestNeighbourUpsampling(scale)

ValidAverageDownsampling(scale)

Creates a spatially (meaning in x,y axes) coarser copy of the provided array by averaging the valid values.

class msi2slstr.transform.resizing.ValidAverageDownsampling(scale: int)[source]

Bases: object

Creates a spatially (meaning in x,y axes) coarser copy of the provided array by averaging the valid values.

Parameters:
  • scale – The area of the spatial aggregation in number of elements (pixels.)

  • scale – int