#include "core/plugin.h" #include "pipeline/module.h" #include "metopsg/module_metopsg_instruments.h" class MetOpSGSupport : public satdump::Plugin { public: std::string getID() { return "metopsg_support"; } void init() { satdump::eventBus->register_handler(registerPluginsHandler); // satdump::eventBus->register_handler(provideImageCalibratorHandler); } static void registerPluginsHandler(const satdump::pipeline::RegisterModulesEvent &evt) { REGISTER_MODULE_EXTERNAL(evt.modules_registry, metopsg::instruments::MetOpSGInstrumentsDecoderModule); } // static void provideImageCalibratorHandler(const satdump::products::RequestImageCalibratorEvent &evt) // { // if (evt.id == "noaa_avhrr3") // evt.calibrators.push_back(std::make_shared(evt.products, evt.calib)); // else if (evt.id == "noaa_mhs" || evt.id == "noaa_amsu") // evt.calibrators.push_back(std::make_shared(evt.products, evt.calib)); // else if (evt.id == "metop_iasi_img") // evt.calibrators.push_back(std::make_shared(evt.products, evt.calib)); // else if (evt.id == "metop_ascat") // evt.calibrators.push_back(std::make_shared(evt.products, evt.calib)); // else if (evt.id == "noaa_hirs") // evt.calibrators.push_back(std::make_shared(evt.products, evt.calib)); // } }; PLUGIN_LOADER(MetOpSGSupport)