SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
calibration_converter.h File Reference
#include "calibration_units.h"
#include "common/calibration.h"
#include "projection/projection.h"

Go to the source code of this file.

Classes

class  satdump::calibration::ConverterBase
 Base class for unit converters. This is meant to implement conversions between calibration unit types, for example from emissive radiance measured by a radiometer to brightness temperature, or to apply other processing such as compensating for sun angle in reflective channels, etc. More...
struct  satdump::calibration::ConverterRequestEvent
 Event to let plugins register their own unit converters. More...
struct  satdump::calibration::ConversionRequestEvent
 Event to let plugins list available conversions. Do note it's still possible no converter is provided despite this listing it as available. Shouldn't happen, but do check availability yourself later on. More...
class  satdump::calibration::UnitConverter
 Universal UnitConverter class, handling all conversion logic between any calibration unit type to another. More...

Functions

std::vector< std::shared_ptr< ConverterBase > > satdump::calibration::getAvailableConverters (std::string itype, std::string otype)
 Request a converter from a specific unit to another. May return empty vectors, if so no converter was found.
std::vector< std::string > satdump::calibration::getAvailableConversions (std::string itype)
 Get a list of calibration types that can be produced from this unit ID.

Function Documentation

◆ getAvailableConversions()

std::vector< std::string > satdump::calibration::getAvailableConversions ( std::string itype)

Get a list of calibration types that can be produced from this unit ID.

Parameters
itypeinput unit
Returns
list of unit IDs you can convert itype to

◆ getAvailableConverters()

std::vector< std::shared_ptr< ConverterBase > > satdump::calibration::getAvailableConverters ( std::string itype,
std::string otype )

Request a converter from a specific unit to another. May return empty vectors, if so no converter was found.

Parameters
itypewanted input unit
otypewanted output unit
Returns
vector of valid converters, should never more than one in theory however!