SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
satdump::calibration::ConverterBase Class Reference

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...

#include <calibration_converter.h>

Inheritance diagram for satdump::calibration::ConverterBase:
satdump::calibration::conv::BrightTempToEmRadConverter satdump::calibration::conv::EmRadToBrightTempConverter satdump::calibration::conv::KelvinCelsiusConverter satdump::calibration::conv::RefRadToSunCorRefRadConverter satdump::calibration::conv::SunAngleConverter

Public Member Functions

virtual double convert (const UnitConverter *c, double x, double y, double val)
 Core function (for images!) implementing conversion between calibration unit types.
virtual bool convert_range (const UnitConverter *c, double &min, double &max)
 Convert unit ranges. This does the same as convert, except it's optimized for converting a range.

Detailed Description

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.

Member Function Documentation

◆ convert()

double satdump::calibration::ConverterBase::convert ( const UnitConverter * c,
double x,
double y,
double val )
virtual

Core function (for images!) implementing conversion between calibration unit types.

Parameters
creference to the UnitConverter this belongs to
xx position in the image
yposition in the image
valinput calibrated value
Returns
converted unit, or CALIBRATION_INVALID_VALUE on errors

Reimplemented in satdump::calibration::conv::BrightTempToEmRadConverter, satdump::calibration::conv::EmRadToBrightTempConverter, satdump::calibration::conv::KelvinCelsiusConverter, satdump::calibration::conv::RefRadToSunCorRefRadConverter, and satdump::calibration::conv::SunAngleConverter.

◆ convert_range()

bool satdump::calibration::ConverterBase::convert_range ( const UnitConverter * c,
double & min,
double & max )
virtual

Convert unit ranges. This does the same as convert, except it's optimized for converting a range.

Parameters
creference to the UnitConverter this belongs to
minmin of the range
maxmax of the range
Returns
true if the convertion was done

Reimplemented in satdump::calibration::conv::BrightTempToEmRadConverter, satdump::calibration::conv::EmRadToBrightTempConverter, satdump::calibration::conv::KelvinCelsiusConverter, satdump::calibration::conv::RefRadToSunCorRefRadConverter, and satdump::calibration::conv::SunAngleConverter.


The documentation for this class was generated from the following files: