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

Kelvin <=> Celsius converter. More...

#include <kelvin_celcius.h>

Inheritance diagram for satdump::calibration::conv::KelvinCelsiusConverter:
satdump::calibration::ConverterBase

Public Member Functions

 KelvinCelsiusConverter (bool ktc)
 Constructor.
double convert (const UnitConverter *c, double x, double y, double val)
 Core function (for images!) implementing conversion between calibration unit types.
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

Kelvin <=> Celsius converter.

Converts between Kelvin and Celsius

Constructor & Destructor Documentation

◆ KelvinCelsiusConverter()

satdump::calibration::conv::KelvinCelsiusConverter::KelvinCelsiusConverter ( bool ktc)
inline

Constructor.

Parameters
ktcif true, Kelvin => Celcius

Member Function Documentation

◆ convert()

double satdump::calibration::conv::KelvinCelsiusConverter::convert ( const UnitConverter * c,
double x,
double y,
double val )
inlinevirtual

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 from satdump::calibration::ConverterBase.

◆ convert_range()

bool satdump::calibration::conv::KelvinCelsiusConverter::convert_range ( const UnitConverter * c,
double & min,
double & max )
inlinevirtual

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 from satdump::calibration::ConverterBase.


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