#include <dballe/core/error.h>
Go to the source code of this file.
Functions | |
dba_err | dba_convert_units (const char *from, const char *to, double val, double *res) |
Convert between different units. | |
dba_err | dba_convert_units_get_mul (const char *from, const char *to, double *mul) |
Get the multiplier used in the given conversion. | |
int | dba_convert_units_allowed (const char *from, const char *to) |
Check if conversion is possible among the given units. | |
dba_err | dba_convert_icao_to_press (double from, double *to) |
Convert ICAO height (in meters) to pressure (in hpa) and back. | |
dba_err | dba_convert_press_to_icao (double from, double *to) |
Convert pressure (in hpa) to ICAO height (in meters). | |
dba_err | dba_convert_AOFVSS_to_BUFR08001 (int from, int *to) |
Convert vertical sounding significance from the AOF encoding to BUFR code table 08001. | |
dba_err | dba_convert_WMO0500_to_BUFR20012 (int from, int *to) |
Cloud type. | |
dba_err | dba_convert_WMO0509_to_BUFR20012 (int from, int *to) |
Cloud type (CH). | |
dba_err | dba_convert_WMO0515_to_BUFR20012 (int from, int *to) |
Cloud type (CM). | |
dba_err | dba_convert_WMO0513_to_BUFR20012 (int from, int *to) |
Cloud type (CL). | |
dba_err | dba_convert_WMO4677_to_BUFR20003 (int from, int *to) |
Present weather. | |
dba_err | dba_convert_WMO4561_to_BUFR20004 (int from, int *to) |
Past weather. | |
dba_err | dba_convert_BUFR20012_to_WMO0500 (int from, int *to) |
Cloud type. | |
dba_err | dba_convert_BUFR20012_to_WMO0509 (int from, int *to) |
Cloud type (CH). | |
dba_err | dba_convert_BUFR20012_to_WMO0515 (int from, int *to) |
Cloud type (CM). | |
dba_err | dba_convert_BUFR20012_to_WMO0513 (int from, int *to) |
Cloud type (CL). | |
dba_err | dba_convert_BUFR20003_to_WMO4677 (int from, int *to) |
Present weather. | |
dba_err | dba_convert_BUFR20004_to_WMO4561 (int from, int *to) |
Past weather. |
dba_err dba_convert_units | ( | const char * | from, | |
const char * | to, | |||
double | val, | |||
double * | res | |||
) |
Convert between different units.
from | Unit of the value to convert (see dba_varinfo) | |
to | Unit to convert to (see dba_varinfo) | |
val | Value to convert |
res | Converted value |
int dba_convert_units_allowed | ( | const char * | from, | |
const char * | to | |||
) |
Check if conversion is possible among the given units.
from | Unit of the value to convert (see dba_varinfo) | |
to | Unit to convert to (see dba_varinfo) |
dba_err dba_convert_units_get_mul | ( | const char * | from, | |
const char * | to, | |||
double * | mul | |||
) |
Get the multiplier used in the given conversion.
from | Unit of the value to convert (see dba_varinfo) | |
to | Unit to convert to (see dba_varinfo) |
mul | Multiplier factor used in the conversion |