MI - Fimex
mifi_constants.h
Go to the documentation of this file.
1 /*
2  * Fimex, mifi_constants.h
3  *
4  * (C) Copyright 2011, met.no
5  *
6  * Project Info: https://wiki.met.no/fimex/start
7  *
8  * This library is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or
11  * (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21  * USA.
22  *
23  * Created on: Jul 28, 2011
24  * Author: Heiko Klein
25  */
26 
27 #ifndef MIFI_CONSTANTS_H_
28 #define MIFI_CONSTANTS_H_
29 
30 // math.h needed for MIFI_NAN
31 #include <math.h>
32 // stddef.h needed for size_t
33 #include <stddef.h>
34 
42 #define MIFI_PI 3.1415926535897932384626433832795
43 
44 
147 };
148 
154 #define MIFI_VECTOR_KEEP_SIZE 0
155 
160 #define MIFI_VECTOR_RESIZE 1
161 
162 
168 #define MIFI_VINT_PRESSURE 0
169 
175 #define MIFI_VINT_HEIGHT 1
176 
182 #define MIFI_VINT_DEPTH 2
183 
189 #define MIFI_VINT_SIGMA 3
190 
195 #define MIFI_VINT_ALTITUDE 4
196 
231 };
232 
233 
235 #define MIFI_EARTH_GRAVITY 9.80665
236 
238 #define MIFI_MOLAR_MASS_DRY_AIR 0.0289644
239 
241 #define MIFI_GAS_CONSTANT 8.31432
242 
244 #define MIFI_T0 273.15
245 
246 #ifdef __cplusplus
247 #include <limits>
249 #define MIFI_UNDEFINED_F (std::numeric_limits<float>::quiet_NaN())
250 
251 #define MIFI_UNDEFINED_D (std::numeric_limits<double>::quiet_NaN())
252 #else
253 
254 #define MIFI_UNDEFINED_F (nanf(""))
255 
256 #define MIFI_UNDEFINED_D (nan(""))
257 #endif
258 
259 #define MIFI_ERROR -1
260 
261 #define MIFI_OK 1
262 
264 #define MIFI_PROJ_AXIS 0
265 
266 #define MIFI_LONGITUDE 1
267 
268 #define MIFI_LATITUDE 2
269 
271 #define MIFI_DEBUG 0
272 
273 #endif /* MIFI_CONSTANTS_H_ */
Definition: mifi_constants.h:85
Definition: mifi_constants.h:230
mifi_vertical_interpol_method
vertical interpolation method
Definition: mifi_constants.h:202
Definition: mifi_constants.h:105
Definition: mifi_constants.h:101
Definition: mifi_constants.h:109
mifi_interpol_method
interpolation method
Definition: mifi_constants.h:52
Definition: mifi_constants.h:117
Definition: mifi_constants.h:226
Definition: mifi_constants.h:214
Definition: mifi_constants.h:62
Definition: mifi_constants.h:222
Definition: mifi_constants.h:218
Definition: mifi_constants.h:131
Definition: mifi_constants.h:121
Definition: mifi_constants.h:126
Definition: mifi_constants.h:56
Definition: mifi_constants.h:141
Definition: mifi_constants.h:146
Definition: mifi_constants.h:206
Definition: mifi_constants.h:68
Definition: mifi_constants.h:210
Definition: mifi_constants.h:136
Definition: mifi_constants.h:113
Definition: mifi_constants.h:74