WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
MdrData.h
1#ifndef _WINC_MDRDATA
2#define _WINC_MDRDATA
3
4#include <WXP/Const.h>
5#include <WXP/Date.h>
6#include <WXP/EarthPoint.h>
7#include <WXP/MdrRegion.h>
8
9namespace WXP {
10
11 class MdrData {
12 char id[5];
13 char region[11]; /* Region to which the station is located */
14 float lat,lon;
15 float elev;
16 Date date;
17
18 int status;
19
20 MdrRegion reg[10];
21 int num_reg;
22
23 char echo[26][26];
24
25 public:
26 MdrData();
27 int init();
28 inline const char *getId(){ return id; };
29 int setLoc( float rlat, float rlon );
30 inline Date getDate(){ return date; };
31 inline int getStatus(){ return status; };
32 inline int getPrecipCover( int ind, int pind ){ return reg[ind].prec[pind].cover; };
33 inline const char *getPrecipType( int ind, int pind ){ return reg[ind].prec[pind].type; };
34 inline int getPrecipIntensity( int ind, int pind ){ return reg[ind].prec[pind].intens; };
35 inline int getNumPrecip( int ind ){ return reg[ind].num_prec; };
36 inline float getLocDir( int ind, int pind ){ return reg[ind].loc[pind].dir; };
37 inline float getLocRad( int ind, int pind ){ return reg[ind].loc[pind].rad; };
38 inline int getNumLoc( int ind ){ return reg[ind].num_loc; };
39 int getRegLoc( int ind, EarthPoint &ept );
40 inline bool validTops( int ind ){ return reg[ind].tops.dir != Const::MISS ? true : false; };
41 inline float getTopsDir( int ind ){ return reg[ind].tops.dir; };
42 inline float getTopsRad( int ind ){ return reg[ind].tops.rad; };
43 inline float getTopsHgt( int ind ){ return reg[ind].tops.hgt; };
44 int getTopsLoc( int ind, EarthPoint &ept );
45 inline char getMoveType( int ind, int pind ){ return reg[ind].move[pind].type; };
46 inline float getMoveDir( int ind, int pind ){ return reg[ind].move[pind].dir; };
47 inline float getMoveSpd( int ind, int pind ){ return reg[ind].move[pind].spd; };
48 inline int getNumMove( int ind ){ return reg[ind].num_move; };
49 inline int getNumReg(){ return num_reg; };
50
51 int print();
52 int printEchoes();
53
54 enum Status {
55 NA,
56 NE,
57 OM,
58 PR
59 };
60
61 friend class MdrFile;
62 friend class MdrWxpFile;
63 friend class MdrImage;
64 friend class MdrPlot;
65 friend class MdrDecode;
66 };
67}
68#endif
static const int MISS
Definition Const.h:7
This class stores date and time information.
Definition Date.h:8
This class manages MDR (Manually Digitized Radar Messages) data.
Definition MdrData.h:11
int print()
Definition MdrData.cc:107
int setLoc(float rlat, float rlon)
Definition MdrData.cc:57
int getTopsLoc(int ind, EarthPoint &ept)
Definition MdrData.cc:95
int init()
Definition MdrData.cc:30
int getRegLoc(int ind, EarthPoint &ept)
Definition MdrData.cc:68
MdrData()
Definition MdrData.cc:23
This decodes MDR radar data files.
Definition MdrDecode.h:13
This class reads in MDR (Manually Digitized Radar Messages) data.
Definition MdrFile.h:12
This class merges MDR data into an Image.
Definition MdrImage.h:9
This class plots MDR radar data.
Definition MdrPlot.h:24
This class reads in decoded MDR radar files.
Definition MdrWxpFile.h:11
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct defines earth point values (lat, lon, elev)
Definition EarthPoint.h:5
This struct stores MDR data for a particular precipitation region.
Definition MdrRegion.h:5