def register_all():
    FactoryBase.register("PluginBase",
                         MajaVenusPlugin)
    FactoryBase.register("L1ImageInformationsBase",
                         MajaVenusL1ImageInformations)

    FactoryBase.register("L1ImageReaderBase",
                         VenusL1ImageFileReader)
Пример #2
0
def register_all():
    FactoryBase.register("L1ImageInformationsBase",
                         MajaLandsat8MuscateL1ImageInformations)
    FactoryBase.register("PluginBase", MajaLandsat8MuscatePlugin)
    FactoryBase.register("L1ImageReaderBase", Landsat8MuscateL1ImageFileReader)
    FactoryBase.register("L2ImageWriterBase", MajaLandsat8MuscateL2ImageWriter)
    FactoryBase.register("L2HeaderWriterBase",
                         MajaLandsat8MuscateL2HeaderWriter)
    FactoryBase.register("L2ImageReaderBase", MajaLandsat8MuscateL2ImageReader)
Пример #3
0
def register_all():
    FactoryBase.register("L1ImageInformationsBase",
                         MajaLandsat8L1ImageInformations)
    FactoryBase.register("PluginBase", MajaLandsat8Plugin)
    FactoryBase.register("L1ImageReaderBase", Landsat8L1ImageFileReader)
Пример #4
0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import os
import inspect
from orchestrator.modules.maja_module import MajaModule
from orchestrator.plugins.common.factory.factory_base import FactoryBase
from orchestrator.common.logger.maja_logging import configure_logger

LOGGER = configure_logger(__name__)

path = os.path.dirname(os.path.abspath(__file__))

for py in [
        f[:-3] for f in os.listdir(path)
        if f.endswith('.py') and f != '__init__.py'
]:
    mod = __import__('.'.join([__name__, py]), fromlist=[py])
    classes = [
        getattr(mod, x) for x in dir(mod)
        if (inspect.isclass(getattr(mod, x))
            and issubclass(getattr(mod, x), MajaModule)) and (
                not getattr(mod, x).__name__ == "MajaModule")
    ]
    for cls in classes:
        FactoryBase.register(cls.NAME, cls)
Пример #5
0
def register_all():
    FactoryBase.register("L1ImageInformationsBase",
                         MajaSentinel2L1ImageInformations)
    FactoryBase.register("L1ImageReaderBase", Sentinel2L1ImageFileReader)
    FactoryBase.register("PluginBase", MajaSentinel2Plugin)
    FactoryBase.register("L2ImageWriterBase", MajaSentinel2L2ImageWriter)
    FactoryBase.register("L2ImageReaderBase", MajaSentinel2L2ImageReader)
    FactoryBase.register("L2HeaderWriterBase", MajaSentinel2L2HeaderWriter)