IODA
UnitConversions.h File Reference

Basic arithmetic unit conversions to SI. More...

#include "ioda/defs.h"
#include <functional>
#include <unordered_map>
#include <string>
#include <vector>
Include dependency graph for UnitConversions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ioda
 
 ioda::detail
 

Functions

double ioda::detail::celsiusToKelvin (double temp)
 
double ioda::detail::knotsToMetersPerSecond (double knots)
 
double ioda::detail::percentageToFraction (double percentage)
 
double ioda::detail::hectopascalToPascal (double hPa)
 
double ioda::detail::degreesToRadians (double deg)
 
double ioda::detail::oktaToFraction (double okta)
 
IODA_DL void ioda::convertColumn (const std::string &unit, std::vector< double > &dataToConvert)
 
IODA_DL std::string ioda::getSIUnit (const std::string &unit)
 

Variables

const std::unordered_map< std::string, std::function< double(double)> > ioda::detail::unitConversionEquations
 
const std::unordered_map< std::string, std::string > ioda::detail::equivalentSIUnit
 

Detailed Description

Basic arithmetic unit conversions to SI.

Definition in file UnitConversions.h.