WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
SaoTool.h
1#ifndef _WINC_SAOTOOL
2#define _WINC_SAOTOOL
3
4#include <WXP/Const.h>
5#include <WXP/Convert.h>
6#include <WXP/SfcData.h>
7#include <WXP/SfcWmoData.h>
8
9namespace WXP {
10 class SaoTool {
11 public:
12 static int decode( SfcWmoData &data, SfcData &sfcdata);
13 static int decode( char *data, SfcData &sfcdata);
14
15 static inline float decodeSlp( float f1 ){
16 return f1>500?f1/10+900:(f1>=0?f1/10+1000:Const::MISS); }
17 static inline float decodeAlt( float f1 ){
18 return f1>500?f1/100+20:(f1>=0?f1/100+30:Const::MISS); }
19 static inline float decodeAltmb( float f1 ){
20 return Convert::MBtoIN(f1>500?f1/100+20:(f1>=0?f1/100+30:Const::MISS)); }
21 };
22}
23#endif
static const int MISS
Definition Const.h:7
static float MBtoIN(float p)
Definition Convert.h:40
This class is a set of tools to manage METAR data.
Definition SaoTool.h:10
static int decode(SfcWmoData &data, SfcData &sfcdata)
Definition SaoTool.cc:25
This class stores surface data.
Definition SfcData.h:12
This class hold information about raw surface reports (METAR, SAO).
Definition SfcWmoData.h:8
All WXP classes fall under the WXP namespace.
Definition Angle.h:4