2024-01-11 13:32:49 -05:00
|
|
|
/**********************************************************************
|
|
|
|
|
* This file is used for testing random stuff without running the
|
|
|
|
|
* whole of SatDump, which comes in handy for debugging individual
|
|
|
|
|
* elements before putting them all together in modules...
|
|
|
|
|
*
|
|
|
|
|
* If you are an user, ignore this file which will not be built by
|
|
|
|
|
* default, and if you're a developper in need of doing stuff here...
|
|
|
|
|
* Go ahead!
|
|
|
|
|
*
|
|
|
|
|
* Don't judge the code you might see in there! :)
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "logger.h"
|
2025-05-03 15:54:27 +02:00
|
|
|
#include "products2/image/product_expression.h"
|
|
|
|
|
#include "products2/image_product.h"
|
|
|
|
|
#include <exception>
|
2025-04-24 22:34:17 +02:00
|
|
|
|
2025-05-03 15:54:27 +02:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
initLogger();
|
|
|
|
|
|
|
|
|
|
satdump::products::ImageProduct pro;
|
|
|
|
|
pro.load("/home/alan/Downloads/SatDump_NEWPRODS/metop_test/AVHRR/product.cbor");
|
|
|
|
|
|
|
|
|
|
bool v = satdump::products::check_expression_product_composite(&pro, "cha, ch2, ch1");
|
|
|
|
|
logger->critical(v);
|
|
|
|
|
}
|