eradiate.contexts.KernelContext

class eradiate.contexts.KernelContext(si=NOTHING, active_sensors=None, kwargs=NOTHING)[source]

Bases: Context

Kernel evaluation context data structure. This class is used e.g. to store information about the spectral configuration to apply when generating kernel dictionaries or update parameter maps associated with a SceneElement instance.

Parameters:
  • si (SpectralIndex or dict, default: SpectralIndex.new()) – Spectral index (used to evaluate quantities with any degree or kind of dependency vs spectrally varying quantities).

  • active_sensors (list of int or int, optional, default: None) – List of active sensors.

  • kwargs (dict, default: {}) – Object-specific parameter overrides.

Fields:
  • si (SpectralIndex) – Spectral index (used to evaluate quantities with any degree or kind of dependency vs spectrally varying quantities).

  • active_sensors (list of int) – List of active sensors.

  • kwargs (dict) – Object-specific parameter overrides.

evolve(**changes)

Create a copy of self with changes applied.

Parameters:

**changes – Keyword changes in the new copy.

Returns:

<same type as self> – A copy of self with changes incorporated.