ARTS  2.4.0(git:4fb77825)
Conversion Namespace Reference

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

Functions

template<class T >
constexpr Numeric deg2rad (T x)
 Converts degrees to radians
More...
 
template<class T >
constexpr Numeric rad2deg (T x)
 Converts radians to degrees
More...
 
template<class T >
Numeric cosd (T x)
 Returns the cosine of the deg2rad of the input
More...
 
template<class T >
Numeric sind (T x)
 Returns the sine of the deg2rad of the input
More...
 
template<class T >
Numeric tand (T x)
 Returns the tangent of the deg2rad of the input
More...
 
template<class T >
Numeric acosd (T x)
 Returns rad2deg of the arc-cosine of the input
More...
 
template<class T >
Numeric asind (T x)
 Returns rad2deg of the arc-sine of the input
More...
 
template<class T >
Numeric atand (T x)
 Returns rad2deg of the arc-tangent of the input
More...
 
template<class T1 , class T2 >
Numeric atan2d (T1 y, T2 x)
 Returns rad2deg of the arc-tangent of inputs #T1/#T2
More...
 
template<class T >
constexpr Numeric kaycm2freq (T x)
 
template<class T >
constexpr Numeric freq2kaycm (T x)
 
template<class T >
constexpr Numeric angcm2freq (T x)
 
template<class T >
constexpr Numeric freq2angcm (T x)
 
template<class T >
constexpr Numeric angfreq2freq (T x)
 Conversion constant Angular frequency to frequency and back. More...
 
template<class T >
constexpr Numeric freq2angfreq (T x)
 
template<class T >
constexpr Numeric wavelen2freq (T x)
 Conversion wavelength to frequency and back. More...
 
template<class T >
constexpr Numeric freq2wavelen (T x)
 
template<class T >
constexpr Numeric atm2pa (T x)
 
template<class T >
constexpr Numeric pa2atm (T x)
 
template<class T >
constexpr Numeric torr2pa (T x)
 
template<class T >
constexpr Numeric pa2torr (T x)
 
template<class T >
constexpr Numeric celsius2kelvin (T x)
 
template<class T >
constexpr Numeric kelvin2celsius (T x)
 
template<class T >
constexpr T hitran2arts_linestrength (T x)
 
template<class T >
constexpr T arts2hitran_linestrength (T x)
 
template<class T >
constexpr T hitran2arts_broadening (T x)
 
template<class T >
constexpr T arts2hitran_broadening (T x)
 
template<class T >
constexpr T hitran2arts_energy (T x)
 
template<class T >
constexpr T arts2hitran_energy (T x)
 
template<class T >
constexpr T angstrom2meter (T x)
 
template<class T >
constexpr T meter2angstrom (T x)
 

Detailed Description

Namespace containing several practical unit conversions, physical and mathematical.

Function Documentation

◆ acosd()

template<class T >
Numeric Conversion::acosd ( x)

Returns rad2deg of the arc-cosine of the input

Definition at line 357 of file constants.h.

References rad2deg(), and ARTS::Var::x().

◆ angcm2freq()

template<class T >
constexpr Numeric Conversion::angcm2freq ( x)
constexpr

Definition at line 395 of file constants.h.

References ARTS::Var::x().

◆ angfreq2freq()

template<class T >
constexpr Numeric Conversion::angfreq2freq ( x)
constexpr

Conversion constant Angular frequency to frequency and back.

Definition at line 405 of file constants.h.

References ARTS::Var::x().

◆ angstrom2meter()

template<class T >
constexpr T Conversion::angstrom2meter ( x)
constexpr

Definition at line 495 of file constants.h.

References ARTS::Var::x().

Referenced by o2_ecs_adiabatic_factor_makarov().

◆ arts2hitran_broadening()

template<class T >
constexpr T Conversion::arts2hitran_broadening ( x)
constexpr

Definition at line 478 of file constants.h.

References ARTS::Var::x().

◆ arts2hitran_energy()

template<class T >
constexpr T Conversion::arts2hitran_energy ( x)
constexpr

Definition at line 490 of file constants.h.

References ARTS::Var::x().

◆ arts2hitran_linestrength()

template<class T >
constexpr T Conversion::arts2hitran_linestrength ( x)
constexpr

Definition at line 466 of file constants.h.

References ARTS::Var::x().

◆ asind()

template<class T >
Numeric Conversion::asind ( x)

Returns rad2deg of the arc-sine of the input

Definition at line 363 of file constants.h.

References rad2deg(), and ARTS::Var::x().

◆ atan2d()

template<class T1 , class T2 >
Numeric Conversion::atan2d ( T1  y,
T2  x 
)

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

Definition at line 375 of file constants.h.

References rad2deg(), ARTS::Var::x(), and ARTS::Var::y().

◆ atand()

template<class T >
Numeric Conversion::atand ( x)

Returns rad2deg of the arc-tangent of the input

Definition at line 369 of file constants.h.

References rad2deg(), and ARTS::Var::x().

◆ atm2pa()

template<class T >
constexpr Numeric Conversion::atm2pa ( x)
constexpr

Definition at line 427 of file constants.h.

References ATM2PA, and ARTS::Var::x().

Referenced by test_hitran2017().

◆ celsius2kelvin()

template<class T >
constexpr Numeric Conversion::celsius2kelvin ( x)
constexpr

Definition at line 450 of file constants.h.

References ARTS::Var::x().

◆ cosd()

template<class T >
Numeric Conversion::cosd ( x)

Returns the cosine of the deg2rad of the input

Definition at line 339 of file constants.h.

References deg2rad(), and ARTS::Var::x().

◆ deg2rad()

template<class T >
constexpr Numeric Conversion::deg2rad ( x)
constexpr

Converts degrees to radians

Definition at line 327 of file constants.h.

References DEG2RAD, and ARTS::Var::x().

Referenced by cosd(), sind(), tand(), and zeeman_on_the_fly().

◆ freq2angcm()

template<class T >
constexpr Numeric Conversion::freq2angcm ( x)
constexpr

Definition at line 399 of file constants.h.

References ARTS::Var::x().

◆ freq2angfreq()

template<class T >
constexpr Numeric Conversion::freq2angfreq ( x)
constexpr

Definition at line 409 of file constants.h.

References ARTS::Var::x().

◆ freq2kaycm()

template<class T >
constexpr Numeric Conversion::freq2kaycm ( x)
constexpr

Definition at line 387 of file constants.h.

References ARTS::Var::x().

Referenced by Linefunctions::set_htp(), and LineShape::si2cgs().

◆ freq2wavelen()

template<class T >
constexpr Numeric Conversion::freq2wavelen ( x)
constexpr

Definition at line 419 of file constants.h.

◆ hitran2arts_broadening()

template<class T >
constexpr T Conversion::hitran2arts_broadening ( x)
constexpr

Definition at line 474 of file constants.h.

References ARTS::Var::x().

◆ hitran2arts_energy()

template<class T >
constexpr T Conversion::hitran2arts_energy ( x)
constexpr

Definition at line 486 of file constants.h.

References ARTS::Var::x().

◆ hitran2arts_linestrength()

template<class T >
constexpr T Conversion::hitran2arts_linestrength ( x)
constexpr

◆ kaycm2freq()

template<class T >
constexpr Numeric Conversion::kaycm2freq ( x)
constexpr

Definition at line 383 of file constants.h.

References ARTS::Var::x().

Referenced by test_hitran2017().

◆ kelvin2celsius()

template<class T >
constexpr Numeric Conversion::kelvin2celsius ( x)
constexpr

Definition at line 454 of file constants.h.

References ARTS::Var::x().

◆ meter2angstrom()

template<class T >
constexpr T Conversion::meter2angstrom ( x)
constexpr

Definition at line 499 of file constants.h.

References ARTS::Var::x().

◆ pa2atm()

template<class T >
constexpr Numeric Conversion::pa2atm ( x)
constexpr

Definition at line 431 of file constants.h.

References ARTS::Var::x().

◆ pa2torr()

template<class T >
constexpr Numeric Conversion::pa2torr ( x)
constexpr

Definition at line 443 of file constants.h.

References ARTS::Var::x().

◆ rad2deg()

template<class T >
constexpr Numeric Conversion::rad2deg ( x)
constexpr

Converts radians to degrees

Definition at line 333 of file constants.h.

References RAD2DEG, and ARTS::Var::x().

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

◆ sind()

template<class T >
Numeric Conversion::sind ( x)

Returns the sine of the deg2rad of the input

Definition at line 345 of file constants.h.

References deg2rad(), and ARTS::Var::x().

◆ tand()

template<class T >
Numeric Conversion::tand ( x)

Returns the tangent of the deg2rad of the input

Definition at line 351 of file constants.h.

References deg2rad(), and ARTS::Var::x().

◆ torr2pa()

template<class T >
constexpr Numeric Conversion::torr2pa ( x)
constexpr

Definition at line 439 of file constants.h.

References TORR2PA, and ARTS::Var::x().

◆ wavelen2freq()

template<class T >
constexpr Numeric Conversion::wavelen2freq ( x)
constexpr

Conversion wavelength to frequency and back.

Definition at line 415 of file constants.h.