conv.h
Go to the documentation of this file.
#ifndef WREPORT_CONV
#define WREPORT_CONV
namespace wreport {
double convert_units(const char* from, const char* to, double val);
double convert_icao_to_press(double from);
double convert_press_to_icao(double from);
double convert_octants_to_degrees(int from);
int convert_degrees_to_octants(double from);
unsigned convert_AOFVSS_to_BUFR08042(unsigned from);
int convert_WMO0500_to_BUFR20012(int from);
int convert_WMO0509_to_BUFR20012(int from);
int convert_WMO0515_to_BUFR20012(int from);
int convert_WMO0513_to_BUFR20012(int from);
int convert_WMO4677_to_BUFR20003(int from);
int convert_WMO4561_to_BUFR20004(int from);
int convert_BUFR20012_to_WMO0500(int from);
int convert_BUFR20012_to_WMO0509(int from);
int convert_BUFR20012_to_WMO0515(int from);
int convert_BUFR20012_to_WMO0513(int from);
int convert_BUFR20003_to_WMO4677(int from);
int convert_BUFR20004_to_WMO4561(int from);
unsigned convert_BUFR08001_to_BUFR08042(unsigned from);
unsigned convert_BUFR08042_to_BUFR08001(unsigned from);
/* @} */
double convert_units_get_mul(const char* from, const char* to);
bool convert_units_allowed(const char* from, const char* to);
}
#endif
wreport
String functions.
Definition benchmark.h:13
wreport::convert_WMO0500_to_BUFR20012
int convert_WMO0500_to_BUFR20012(int from)
Conversion functions between various code tables.
wreport::convert_BUFR20012_to_WMO0513
int convert_BUFR20012_to_WMO0513(int from)
Cloud type (CL).
wreport::convert_BUFR20003_to_WMO4677
int convert_BUFR20003_to_WMO4677(int from)
Present weather.
wreport::convert_AOFVSS_to_BUFR08042
unsigned convert_AOFVSS_to_BUFR08042(unsigned from)
Convert vertical sounding significance from the AOF encoding to BUFR code table 08001.
wreport::convert_BUFR08042_to_BUFR08001
unsigned convert_BUFR08042_to_BUFR08001(unsigned from)
Vertical sounding significance.
wreport::convert_units_allowed
bool convert_units_allowed(const char *from, const char *to)
Check if conversion is possible among the given units.
wreport::convert_BUFR20012_to_WMO0500
int convert_BUFR20012_to_WMO0500(int from)
Cloud type.
wreport::convert_press_to_icao
double convert_press_to_icao(double from)
Convert pressure (in hpa) to ICAO height (in meters).
wreport::convert_BUFR20004_to_WMO4561
int convert_BUFR20004_to_WMO4561(int from)
Past weather.
wreport::convert_BUFR08001_to_BUFR08042
unsigned convert_BUFR08001_to_BUFR08042(unsigned from)
Vertical sounding significance.
wreport::convert_degrees_to_octants
int convert_degrees_to_octants(double from)
Convert wind direction (in degrees) to octancts.
wreport::convert_units_get_mul
double convert_units_get_mul(const char *from, const char *to)
Get the multiplier used in the given conversion.
wreport::convert_WMO0513_to_BUFR20012
int convert_WMO0513_to_BUFR20012(int from)
Cloud type (CL).
wreport::convert_WMO0509_to_BUFR20012
int convert_WMO0509_to_BUFR20012(int from)
Cloud type (CH).
wreport::convert_WMO4677_to_BUFR20003
int convert_WMO4677_to_BUFR20003(int from)
Present weather.
wreport::convert_WMO0515_to_BUFR20012
int convert_WMO0515_to_BUFR20012(int from)
Cloud type (CM).
wreport::convert_BUFR20012_to_WMO0509
int convert_BUFR20012_to_WMO0509(int from)
Cloud type (CH).
wreport::convert_icao_to_press
double convert_icao_to_press(double from)
Convert ICAO height (in meters) to pressure (in hpa) and back.
wreport::convert_WMO4561_to_BUFR20004
int convert_WMO4561_to_BUFR20004(int from)
Past weather.
wreport::convert_BUFR20012_to_WMO0515
int convert_BUFR20012_to_WMO0515(int from)
Cloud type (CM).
wreport::convert_units
double convert_units(const char *from, const char *to, double val)
Convert between different units.
wreport::convert_octants_to_degrees
double convert_octants_to_degrees(int from)
Convert wind direction (in octants) to degrees.