eradiate.contexts.KernelContext

eradiate.contexts.KernelContext#

class eradiate.contexts.KernelContext(si=_Nothing.NOTHING, kwargs=_Nothing.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).

  • 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).

  • 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.