ARTS 2.5.4 (git: 31ce4f0e)
Conversion Namespace Reference

Namespace containing several practical unit conversions, physical and mathematical. More...

Functions

constexpr auto deg2rad (auto x) noexcept
 Converts degrees to radians. More...
 
constexpr auto rad2deg (auto x) noexcept
 Converts radians to degrees. More...
 
auto cosd (auto x) noexcept
 Returns the cosine of the deg2rad of the input. More...
 
auto sind (auto x) noexcept
 Returns the sine of the deg2rad of the input. More...
 
auto tand (auto x) noexcept
 Returns the tangent of the deg2rad of the input. More...
 
auto acosd (auto x) noexcept
 Returns rad2deg of the arc-cosine of the input. More...
 
auto asind (auto x) noexcept
 Returns rad2deg of the arc-sine of the input. More...
 
auto atand (auto x) noexcept
 Returns rad2deg of the arc-tangent of the input. More...
 
auto atan2d (auto y, auto x) noexcept
 Returns rad2deg of the arc-tangent of inputs #T1/#T2
More...
 
constexpr auto kaycm2freq (auto x) noexcept
 Conversion from Kayser wavenumber to Hz. More...
 
constexpr auto freq2kaycm (auto x) noexcept
 Conversion from Hz to Kayser wavenumber. More...
 
constexpr auto angcm2freq (auto x) noexcept
 Conversion from Angular wavenumber to Hz. More...
 
constexpr auto freq2angcm (auto x) noexcept
 Conversion from Hz to Angular wavenumber. More...
 
constexpr auto angfreq2freq (auto x) noexcept
 Conversion from Angular Hz to Hz. More...
 
constexpr auto freq2angfreq (auto x) noexcept
 Conversion from Hz to Angular Hz. More...
 
constexpr auto wavelen2freq (auto x) noexcept
 Conversion from wavelength to Hz. More...
 
constexpr auto freq2wavelen (auto x) noexcept
 Conversion from Hz to wavelength. More...
 
constexpr auto hz2ghz (auto x) noexcept
 Conversion from wavelength to Hz. More...
 
constexpr auto ghz2hz (auto x) noexcept
 Conversion from Hz to wavelength. More...
 
constexpr auto atm2pa (auto x) noexcept
 Conversion from Atm to Pa. More...
 
constexpr auto pa2atm (auto x) noexcept
 Conversion from Pa to Atm. More...
 
constexpr auto bar2pa (auto x) noexcept
 Conversion from bar to Pa. More...
 
constexpr auto pa2bar (auto x) noexcept
 Conversion from Pa to bar. More...
 
constexpr auto torr2pa (auto x) noexcept
 Conversion from Torr to Pa. More...
 
constexpr auto pa2torr (auto x) noexcept
 Conversion from Pa to Torr. More...
 
constexpr auto mhz_per_torr2hz_per_pa (auto x) noexcept
 Conversion from MHz/Torr to Hz/Pa. More...
 
constexpr auto celsius2kelvin (auto x) noexcept
 Conversion from C to K. More...
 
constexpr auto kelvin2celsius (auto x) noexcept
 Conversion from K to C. More...
 
constexpr auto kaycm_per_cmsquared2hz_per_msquared (auto x) noexcept
 Conversion from cm-1 per molecule per cm^2 to Hz per molecule per m^2. More...
 
constexpr auto hz_per_msquared2kaycm_per_cmsquared (auto x) noexcept
 Conversion from Hz per molecule per m^2 to cm-1 per molecule per cm^2. More...
 
constexpr auto kaycm_per_atm2hz_per_pa (auto x) noexcept
 Conversion from cm-1 per atmosphere to Hz per Pascal. More...
 
constexpr auto hz_per_pa2kaycm_per_atm (auto x) noexcept
 Conversion from Hz per Pascal to cm-1 per atmosphere. More...
 
constexpr auto kaycm2joule (auto x) noexcept
 Conversion from cm-1 to Joule. More...
 
constexpr auto hz2joule (auto x) noexcept
 Conversion from MHz to Joule. More...
 
constexpr auto mhz2joule (auto x) noexcept
 Conversion from MHz to Joule. More...
 
constexpr auto kelvin2joule (auto x) noexcept
 Conversion from Kelvin to Joule. More...
 
constexpr auto joule2hz (auto x) noexcept
 Conversion from Hz to Joule. More...
 
constexpr auto joule2kaycm (auto x) noexcept
 Conversion from Joule to cm-1. More...
 
constexpr auto angstrom2meter (auto x) noexcept
 Conversion from Å to meter. More...
 
constexpr auto meter2angstrom (auto x) noexcept
 Conversion from meter to Å More...
 

Detailed Description

Namespace containing several practical unit conversions, physical and mathematical.

Function Documentation

◆ acosd()

auto Conversion::acosd ( auto  x)
noexcept

Returns rad2deg of the arc-cosine of the input.

Definition at line 56 of file arts_conversions.h.

References rad2deg().

Referenced by Sample_los(), and Sample_los_uniform().

◆ angcm2freq()

constexpr auto Conversion::angcm2freq ( auto  x)
constexprnoexcept

Conversion from Angular wavenumber to Hz.

Definition at line 74 of file arts_conversions.h.

References Constant::inv_two_pi, and kaycm2freq().

◆ angfreq2freq()

constexpr auto Conversion::angfreq2freq ( auto  x)
constexprnoexcept

Conversion from Angular Hz to Hz.

Definition at line 84 of file arts_conversions.h.

References Constant::inv_two_pi.

◆ angstrom2meter()

constexpr auto Conversion::angstrom2meter ( auto  x)
constexprnoexcept

Conversion from Å to meter.

Definition at line 169 of file arts_conversions.h.

References Constant::e.

◆ asind()

auto Conversion::asind ( auto  x)
noexcept

Returns rad2deg of the arc-sine of the input.

Definition at line 59 of file arts_conversions.h.

References rad2deg().

◆ atan2d()

auto Conversion::atan2d ( auto  y,
auto  x 
)
noexcept

Returns rad2deg of the arc-tangent of inputs #T1/#T2

Definition at line 65 of file arts_conversions.h.

References rad2deg().

Referenced by Legendre::to_geodetic().

◆ atand()

auto Conversion::atand ( auto  x)
noexcept

Returns rad2deg of the arc-tangent of the input.

Definition at line 62 of file arts_conversions.h.

References rad2deg().

◆ atm2pa()

◆ bar2pa()

constexpr auto Conversion::bar2pa ( auto  x)
constexprnoexcept

Conversion from bar to Pa.

Definition at line 108 of file arts_conversions.h.

◆ celsius2kelvin()

constexpr auto Conversion::celsius2kelvin ( auto  x)
constexprnoexcept

Conversion from C to K.

Definition at line 125 of file arts_conversions.h.

◆ cosd()

auto Conversion::cosd ( auto  x)
noexcept

◆ deg2rad()

◆ freq2angcm()

constexpr auto Conversion::freq2angcm ( auto  x)
constexprnoexcept

Conversion from Hz to Angular wavenumber.

Definition at line 79 of file arts_conversions.h.

References Constant::inv_two_pi, and kaycm2freq().

◆ freq2angfreq()

constexpr auto Conversion::freq2angfreq ( auto  x)
constexprnoexcept

Conversion from Hz to Angular Hz.

Definition at line 87 of file arts_conversions.h.

References Constant::two_pi.

◆ freq2kaycm()

constexpr auto Conversion::freq2kaycm ( auto  x)
constexprnoexcept

Conversion from Hz to Kayser wavenumber.

Definition at line 71 of file arts_conversions.h.

References c.

Referenced by hz_per_msquared2kaycm_per_cmsquared(), hz_per_pa2kaycm_per_atm(), lm_hitran_2017::read(), and LineShape::si2cgs().

◆ freq2wavelen()

constexpr auto Conversion::freq2wavelen ( auto  x)
constexprnoexcept

Conversion from Hz to wavelength.

Definition at line 93 of file arts_conversions.h.

References c.

Referenced by gas_scattering_coefAirSimple(), and refractive_index_water_and_steam_VisNIR().

◆ ghz2hz()

constexpr auto Conversion::ghz2hz ( auto  x)
constexprnoexcept

Conversion from Hz to wavelength.

Definition at line 99 of file arts_conversions.h.

◆ hz2ghz()

constexpr auto Conversion::hz2ghz ( auto  x)
constexprnoexcept

Conversion from wavelength to Hz.

Definition at line 96 of file arts_conversions.h.

References Constant::e.

◆ hz2joule()

constexpr auto Conversion::hz2joule ( auto  x)
constexprnoexcept

Conversion from MHz to Joule.

Definition at line 154 of file arts_conversions.h.

References Constant::h.

Referenced by mhz2joule().

◆ hz_per_msquared2kaycm_per_cmsquared()

constexpr auto Conversion::hz_per_msquared2kaycm_per_cmsquared ( auto  x)
constexprnoexcept

Conversion from Hz per molecule per m^2 to cm-1 per molecule per cm^2.

Definition at line 136 of file arts_conversions.h.

References freq2kaycm().

Referenced by lm_hitran_2017::read().

◆ hz_per_pa2kaycm_per_atm()

constexpr auto Conversion::hz_per_pa2kaycm_per_atm ( auto  x)
constexprnoexcept

Conversion from Hz per Pascal to cm-1 per atmosphere.

Definition at line 146 of file arts_conversions.h.

References atm2pa(), and freq2kaycm().

◆ joule2hz()

constexpr auto Conversion::joule2hz ( auto  x)
constexprnoexcept

Conversion from Hz to Joule.

Definition at line 163 of file arts_conversions.h.

References Constant::h.

◆ joule2kaycm()

constexpr auto Conversion::joule2kaycm ( auto  x)
constexprnoexcept

Conversion from Joule to cm-1.

Definition at line 166 of file arts_conversions.h.

References Constant::h, and kaycm2freq().

◆ kaycm2freq()

constexpr auto Conversion::kaycm2freq ( auto  x)
constexprnoexcept

◆ kaycm2joule()

constexpr auto Conversion::kaycm2joule ( auto  x)
constexprnoexcept

◆ kaycm_per_atm2hz_per_pa()

constexpr auto Conversion::kaycm_per_atm2hz_per_pa ( auto  x)
constexprnoexcept

Conversion from cm-1 per atmosphere to Hz per Pascal.

Definition at line 141 of file arts_conversions.h.

References kaycm2freq(), and pa2atm().

Referenced by ecs_dataAddRodrigues1997(), ecs_dataAddTran2006(), and lm_hitran_2017::read().

◆ kaycm_per_cmsquared2hz_per_msquared()

constexpr auto Conversion::kaycm_per_cmsquared2hz_per_msquared ( auto  x)
constexprnoexcept

Conversion from cm-1 per molecule per cm^2 to Hz per molecule per m^2.

Definition at line 131 of file arts_conversions.h.

References Constant::e, and kaycm2freq().

Referenced by test_hitran2017().

◆ kelvin2celsius()

constexpr auto Conversion::kelvin2celsius ( auto  x)
constexprnoexcept

Conversion from K to C.

Definition at line 128 of file arts_conversions.h.

◆ kelvin2joule()

constexpr auto Conversion::kelvin2joule ( auto  x)
constexprnoexcept

◆ meter2angstrom()

constexpr auto Conversion::meter2angstrom ( auto  x)
constexprnoexcept

Conversion from meter to Å

Definition at line 172 of file arts_conversions.h.

◆ mhz2joule()

constexpr auto Conversion::mhz2joule ( auto  x)
constexprnoexcept

Conversion from MHz to Joule.

Definition at line 157 of file arts_conversions.h.

References hz2joule().

Referenced by Absorption::LineMixing::Makarov2020etal::erot().

◆ mhz_per_torr2hz_per_pa()

constexpr auto Conversion::mhz_per_torr2hz_per_pa ( auto  x)
constexprnoexcept

Conversion from MHz/Torr to Hz/Pa.

Definition at line 120 of file arts_conversions.h.

References pa2torr().

◆ pa2atm()

constexpr auto Conversion::pa2atm ( auto  x)
constexprnoexcept

Conversion from Pa to Atm.

Definition at line 105 of file arts_conversions.h.

Referenced by kaycm_per_atm2hz_per_pa().

◆ pa2bar()

constexpr auto Conversion::pa2bar ( auto  x)
constexprnoexcept

Conversion from Pa to bar.

Definition at line 111 of file arts_conversions.h.

References Constant::e.

◆ pa2torr()

constexpr auto Conversion::pa2torr ( auto  x)
constexprnoexcept

Conversion from Pa to Torr.

Definition at line 117 of file arts_conversions.h.

References atm2pa().

Referenced by mhz_per_torr2hz_per_pa().

◆ rad2deg()

constexpr auto Conversion::rad2deg ( auto  x)
constexprnoexcept

Converts radians to degrees.

Definition at line 44 of file arts_conversions.h.

References Constant::one_degree_in_radians.

Referenced by acosd(), asind(), atan2d(), and atand().

◆ sind()

auto Conversion::sind ( auto  x)
noexcept

Returns the sine of the deg2rad of the input.

Definition at line 50 of file arts_conversions.h.

References deg2rad().

Referenced by muellersparse_rotation(), IGRF::radius(), scat_angle(), Legendre::schmidt_fieldcalc(), test18(), test19(), test20(), test21(), test23(), and test28().

◆ tand()

auto Conversion::tand ( auto  x)
noexcept

Returns the tangent of the deg2rad of the input.

Definition at line 53 of file arts_conversions.h.

References deg2rad().

◆ torr2pa()

constexpr auto Conversion::torr2pa ( auto  x)
constexprnoexcept

Conversion from Torr to Pa.

Definition at line 114 of file arts_conversions.h.

References atm2pa().

Referenced by main().

◆ wavelen2freq()

constexpr auto Conversion::wavelen2freq ( auto  x)
constexprnoexcept

Conversion from wavelength to Hz.

Definition at line 90 of file arts_conversions.h.

References c.

Referenced by refractive_index_water_and_steam_VisNIR().