qtty-cpp 0.4.5
Header-only C++ wrapper for qtty
Loading...
Searching...
No Matches
spectral_radiance.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2// Copyright (C) 2026 Vallés Puig, Ramon
3
4#pragma once
5
6#include "../ffi_core.hpp"
7
8namespace qtty {
9
13
15 static constexpr UnitId unit_id() { return UNIT_ID_WATT_PER_SQUARE_METER_STERADIAN_METER; }
16 static constexpr std::string_view symbol() { return "W·m⁻²·sr⁻¹·m⁻¹"; }
17 static constexpr DimensionId dimension() { return DIMENSION_ID_SPECTRAL_RADIANCE; }
18};
20 static constexpr UnitId unit_id() { return UNIT_ID_WATT_PER_SQUARE_METER_STERADIAN_NANOMETER; }
21 static constexpr std::string_view symbol() { return "W·m⁻²·sr⁻¹·nm⁻¹"; }
22 static constexpr DimensionId dimension() { return DIMENSION_ID_SPECTRAL_RADIANCE; }
23};
25 static constexpr UnitId unit_id() {
26 return UNIT_ID_ERG_PER_SECOND_SQUARE_CENTIMETER_STERADIAN_ANGSTROM;
27 }
28 static constexpr std::string_view symbol() { return "erg·s⁻¹·cm⁻²·sr⁻¹·Å⁻¹"; }
29 static constexpr DimensionId dimension() { return DIMENSION_ID_SPECTRAL_RADIANCE; }
30};
31
36
37} // namespace qtty
Core quantity template and error translation utilities.
Quantity< WattPerSquareMeterSteradianNanometerTag > WattPerSquareMeterSteradianNanometer
Quantity< WattPerSquareMeterSteradianMeterTag > WattPerSquareMeterSteradianMeter
Quantity< ErgPerSecondSquareCentimeterSteradianAngstromTag > ErgPerSecondSquareCentimeterSteradianAngstrom