geoips.interfaces.yaml_based package#
Submodules#
geoips.interfaces.yaml_based.feature_annotators module#
Feature Annotator interface module.
- class geoips.interfaces.yaml_based.feature_annotators.FeatureAnnotatorsInterface[source]#
Bases:
BaseYamlInterface
Interface for feature annotator plugins.
- name = 'feature_annotators'#
- validator#
alias of
FeatureAnnotatorPluginModel
geoips.interfaces.yaml_based.gridline_annotators module#
Gridline Annotator interface module.
- class geoips.interfaces.yaml_based.gridline_annotators.GridlineAnnotatorsInterface[source]#
Bases:
BaseYamlInterface
Interface for gridline annotator plugins.
- label_kwargs = {'alpha': ['number'], 'backgroundcolor': ['string'], 'color': ['string'], 'fontfamily': ['string'], 'fontsize': ['number', 'string'], 'fontstretch': ['integer', 'string'], 'fontstyle': ['string'], 'fontvariant': ['string'], 'fontweight': ['integer', 'string'], 'linespacing': ['number'], 'mouseover': ['boolean'], 'position': ['array'], 'rotation': ['number', 'string'], 'rotation_mode': ['string'], 'snap': ['boolean'], 'wrap': ['boolean'], 'zorder': ['number']}#
- name = 'gridline_annotators'#
geoips.interfaces.yaml_based.product_defaults module#
Product Defaults interface module.
- class geoips.interfaces.yaml_based.product_defaults.ProductDefaultsInterface[source]#
Bases:
BaseYamlInterface
Default values that can be applied to products.
- name = 'product_defaults'#
geoips.interfaces.yaml_based.products module#
Products interface module.
- class geoips.interfaces.yaml_based.products.ProductsInterface[source]#
Bases:
BaseYamlInterface
GeoIPS interface for Products plugins.
- get_plugin(source_name, name, product_spec_override=None, rebuild_registries=None)[source]#
Retrieve a Product plugin by source_name, name, and product_spec_override.
If product_spec_override dict is passed, values contained within product_spec_override will be used in place of those found in products list and product_defaults.
product_spec_override[product_name] matches the format of the product “spec” field.
Additionally, if the special key product_spec_override[“all”] is included, it will apply to all products not specified by name within the dictionary.
- Parameters:
source_name (str) –
The name the source which the product is derived from.
name (str) –
The name the desired plugin.
dict (str) –
Dictionary specifying what information of the product’s spec that is to be overridden at runtime.
rebuild_registries (bool (default=None)) –
Whether or not to rebuild the registries if get_plugin fails. If set to None, default to what we have set in geoips.filenames.base_paths, which defaults to True. If specified, use the input value of rebuild_registries, which should be a boolean value. If rebuild registries is true and get_plugin fails, rebuild the plugin registry, call then call get_plugin once more with rebuild_registries toggled off, so it only gets rebuilt once.
- get_plugin_metadata(source_name, name)[source]#
Retrieve a product plugin’s metadata.
Where the metadata of the plugin matches the plugin’s corresponding entry in the plugin registry.
- Parameters:
source_name (str) –
The source (sensor) which this product is derived from.
name (str) –
The name of the product plugin whose metadata we’d like to retrieve.
- Returns:
metadata –
A dictionary of metadata for the requested plugin.
- Return type:
dict
- name = 'products'#
- validator = <geoips.interfaces.yaml_based.products.ProductsPluginValidator object>#
- class geoips.interfaces.yaml_based.products.ProductsPluginValidator[source]#
Bases:
YamlPluginValidator
Validator for Products plugins.
This differs from other validators for two reasons:
Most plugins are identified solely by ‘name’. Products are identified by ‘source_name’ and ‘name.
Most plugins supply their ‘family’ directly. Products can supply it directly, but can, alternatively, specify a ‘product_defaults’ plugin from which to pull ‘family’ and most other properties. This validator handles filling in a product plugin based on its specified product defaults plugin.
geoips.interfaces.yaml_based.sectors module#
Sector interface module.
- class geoips.interfaces.yaml_based.sectors.SectorPluginBase(*args, **kwargs)[source]#
Bases:
BaseYamlPlugin
The base class for all sector plugins.
This class provides the functionality specific to sector plugin classes. It should not be instantiated directly. To access sector plugins, use geoips.interfaces.sectors.
- property area_definition#
Return the pyresample AreaDefinition for the sector.
- class geoips.interfaces.yaml_based.sectors.SectorsInterface[source]#
Bases:
BaseYamlInterface
Interface for sector plugins.
- name = 'sectors'#
- plugin_class#
alias of
SectorPluginBase
geoips.interfaces.yaml_based.workflows module#
Workflow interface module.
- class geoips.interfaces.yaml_based.workflows.WorkflowsInterface[source]#
Bases:
BaseYamlInterface
Interface for workflow plugins.
- name = 'workflows'#
- validator#
alias of
WorkflowPluginModel
Module contents#
YAML based interfaces init file.