SatDump 2.0.0-alpha-520736c72
Loading...
Searching...
No Matches
calibration_units.h
Go to the documentation of this file.
1#pragma once
2
6
7#include <map>
8#include <string>
9
10// TODOREWORK move all this out of products! / change namespace
11
12#define CALIBRATION_INVALID_VALUE -9999.9
13
14#define CALIBRATION_ID_SUN_ANGLE "sun_angle"
15#define CALIBRATION_ID_ALBEDO "albedo"
16#define CALIBRATION_ID_SUN_ANGLE_COMPENSATED_ALBEDO "sun_angle_compensated_albedo"
17#define CALIBRATION_ID_EMISSIVE_RADIANCE "emissive_radiance"
18#define CALIBRATION_ID_REFLECTIVE_RADIANCE "reflective_radiance"
19#define CALIBRATION_ID_SUN_ANGLE_COMPENSATED_REFLECTIVE_RADIANCE "sun_angle_compensated_reflective_radiance"
20#define CALIBRATION_ID_BRIGHTNESS_TEMPERATURE "brightness_temperature"
21#define CALIBRATION_ID_BRIGHTNESS_TEMPERATURE_CELSIUS "brightness_temperature_celsius"
22#define CALIBRATION_ID_BACKSCATTER "backscatter"
23
24namespace satdump
25{
26 namespace calibration
27 {
34 struct UnitInfo
35 {
36 std::string unit;
37 std::string name;
38
43 std::string getNiceUnits() { return name + " (" + unit + ")"; }
44 };
45
54 {
55 std::map<std::string, UnitInfo> &r;
56 };
57
65 UnitInfo getUnitInfo(std::string id);
66 } // namespace calibration
67} // namespace satdump
Event to let plugins register their own calibration type IDs and associate a readable name and unit.
Definition calibration_units.h:54
Calibration Unit information.
Definition calibration_units.h:35
std::string getNiceUnits()
Return a nicer name.
Definition calibration_units.h:43