conv.h

Go to the documentation of this file.
00001 /*
00002  * DB-ALLe - Archive for punctual meteorological data
00003  *
00004  * Copyright (C) 2005,2006  ARPA-SIM <urpsim@smr.arpa.emr.it>
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00018  *
00019  * Author: Enrico Zini <enrico@enricozini.com>
00020  */
00021 
00022 #ifndef DBA_CONV
00023 #define DBA_CONV
00024 
00025 #ifdef  __cplusplus
00026 extern "C" {
00027 #endif
00028 
00034 #include <dballe/core/error.h>
00035 
00050 dba_err dba_convert_units(const char* from, const char* to, double val, double* res);
00051 
00064 dba_err dba_convert_units_get_mul(const char* from, const char* to, double* mul);
00065 
00076 int dba_convert_units_allowed(const char* from, const char* to);
00077 
00081 dba_err dba_convert_icao_to_press(double from, double* to);
00082 
00086 dba_err dba_convert_press_to_icao(double from, double* to);
00087 
00092 dba_err dba_convert_AOFVSS_to_BUFR08001(int from, int* to);
00093 
00098 dba_err dba_convert_WMO0500_to_BUFR20012(int from, int* to);
00100 dba_err dba_convert_WMO0509_to_BUFR20012(int from, int* to);
00102 dba_err dba_convert_WMO0515_to_BUFR20012(int from, int* to);
00104 dba_err dba_convert_WMO0513_to_BUFR20012(int from, int* to);
00106 dba_err dba_convert_WMO4677_to_BUFR20003(int from, int* to);
00108 dba_err dba_convert_WMO4561_to_BUFR20004(int from, int* to);
00109 
00111 dba_err dba_convert_BUFR20012_to_WMO0500(int from, int* to);
00113 dba_err dba_convert_BUFR20012_to_WMO0509(int from, int* to);
00115 dba_err dba_convert_BUFR20012_to_WMO0515(int from, int* to);
00117 dba_err dba_convert_BUFR20012_to_WMO0513(int from, int* to);
00119 dba_err dba_convert_BUFR20003_to_WMO4677(int from, int* to);
00121 dba_err dba_convert_BUFR20004_to_WMO4561(int from, int* to);
00122 /* @} */
00123 
00124 #ifdef  __cplusplus
00125 }
00126 #endif
00127 
00128 /* vim:set ts=4 sw=4: */
00129 #endif

Generated on Thu Aug 30 14:59:08 2007 for libdballe-db by  doxygen 1.5.3