aggregate pixel profile under the grid

Issue #247 open
Andreas Janz created an issue

currently, the pixel profile linked into a spectral view is the pixel that is touched by the current subpixel selection.

feature request from EARSeL turorial: if a grid is defined for the map view, an option to aggregate all pixel profiles under the grid would be nice.

So here, we would like to see an aggregated profile of all Hymap pixels covered by the overlayed EnMAP pixel:

Unbenannt.PNG

Comments (12)

  1. Benjamin Jakimow

    To be discussed. This function would emulate a PSF with rectangular coverage, which is probably not what we like to have.

  2. Andreas Janz reporter

    Yes, let discuss this in a bigger round. The rectangle and the PSF are both special cases of a spatial kernel aggregation. I guess some users would be happy to have the simple rectangle, some want the sensor PSF and some want to be even more flexible.

  3. Benjamin Jakimow

    Basically the requested functionality became available with 3.9 (just needs 5262747d025a) via the Spectral Profile Source Panel in the “Kernel Sampling” aggregation options:

    This for example samples the mean profile from the 3x3 EnMAP Grid.
    Other Sampling options, which might aggregate over other Grids / Pixel Kernels, can be implemented by
    1. Inheriting and implementing a new SpectralProfileSamplingMode(object)
    2. registering it to SpectralProfileSamplingModeModel.registerMode(mode)

  4. Benjamin Jakimow

    Feel free to add further sampling methods by implementing and registering new SpectralProfileSamplingModes. You can see how this is done in the code of the SingleProfileMode and KernelSamplingMode.

  5. Log in to comment