16 void convertColumn(
const std::string &unit, std::vector<double> &dataToConvert) {
19 for (
double& value : dataToConvert) {
20 value = conversionFunction(value);
22 }
catch (std::out_of_range) {
31 }
catch (std::out_of_range) {
Basic arithmetic unit conversions to SI.
The ioda exception class.
Exception & add(const std::string &key, const T value)
Add a key-value pair to the error message.
const std::unordered_map< std::string, std::string > equivalentSIUnit
const std::unordered_map< std::string, std::function< double(double)> > unitConversionEquations
IODA_DL std::string getSIUnit(const std::string &unit)
IODA_DL void convertColumn(const std::string &unit, std::vector< double > &dataToConvert)