eradiate.contexts.KernelContext¶
- class eradiate.contexts.KernelContext(si=NOTHING, active_sensors=None, kwargs=NOTHING)[source]¶
Bases:
ContextKernel 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
SceneElementinstance.- Parameters:
si (
SpectralIndexordict, default:SpectralIndex.new()) – Spectral index (used to evaluate quantities with any degree or kind of dependency vs spectrally varying quantities).active_sensors (
listofintorint, 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).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 withchangesincorporated.