plugins
Product Format Plugins protocols
SCT plugins protocols (input products and analyses).
Attributes
Classes
AbsoluteLocalizationErrorCorrector
Bases: Protocol[CorrectionsConfigT]
SCT protocol to define the behavior of specific sensors Absolute Localization Error computation
Methods:
get_ale_corrections_function
Getter of the ALE correction function to effectively compute corrections
update_corrections_config
Update the input corrections config to disable specific corrections when an external product is provided.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
corrections_config
|
CorrectionsConfigT
|
corrections config to be updated |
required |
Returns:
| Type | Description |
|---|---|
CorrectionsConfigT
|
updated corrections config |
InputProductPluginProtocol
Bases: Protocol
Input product plugin protocol.
Input product plugins are discovered via the sct.input_products
entry-point namespace. Each plugin encapsulates the knowledge required to
read and validate a specific SAR product format, together with an optional
detector function (to recognize that format from a path) and an optional
absolute-localization-error corrector.
The entry-point object must be importable without importing the heavy product-access implementation; all heavy imports should be deferred to the manager, detector and corrector classes returned by the accessor methods.
Attributes
Methods:
get_manager
classmethod
Return the input product manager class for this format.
The manager class implements SCTInputProduct and provides read
access to the SAR product data (metadata, raster, auxiliary files).
Returns:
| Type | Description |
|---|---|
type[SCTInputProduct]
|
manager class for the product format |
get_detector
classmethod
Return a callable that detects whether a path belongs to this format.
The detector is a Detector (Callable[[str | Path], bool]) that
inspects the given path and returns True if the data matches the
product format.
Returns:
| Type | Description |
|---|---|
Detector
|
detection callable |
get_ale_corrector
classmethod
Return the ALE corrector class, or None if not supported.
The corrector is used to adjust the absolute localization error (range/azimuth biases) that may affect the product.
Returns:
| Type | Description |
|---|---|
AbsoluteLocalizationErrorCorrector | None
|
corrector class, or |
AnalysisPluginProtocol
Bases: Protocol
Analysis plugin protocol.
Analysis plugins are discovered via the sct.analyses entry-point namespace.
The protocol is intentionally input-agnostic: each plugin defines, validates and
provides its own inputs, configuration, CLI and testing hooks. The entry-point
object must be importable without importing the heavy analysis implementation
(main/core) or the scientific stack.
Attributes
Methods:
get_handlers
classmethod
Retrieve the analysis handlers exposed by this plugin.
A single plugin may expose more than one analysis type (e.g. radiometry exposes several types sharing one CLI group).
Returns:
| Type | Description |
|---|---|
dict[str, AnalysisHandler]
|
mapping of analysis type name to its handler |
Input Products plugins loader.
Attributes
import_input_product_plugins
module-attribute
import_input_product_plugins = partial(import_plugins, plugin_protocol=InputProductPluginProtocol, namespace='sct.input_products')
import_analysis_plugins
module-attribute
import_analysis_plugins = partial(import_plugins, plugin_protocol=AnalysisPluginProtocol, namespace='sct.analyses')