WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
RadMask.h
1#ifndef _WINC_RADMASK
2#define _WINC_RADMASK
3
4#include <WXP/Date.h>
5#include <WXP/Domain.h>
6#include <WXP/EarthPoint.h>
7#include <WXP/Filename.h>
8#include <WXP/Grid.h>
9
10namespace WXP {
11 class RadMask {
12 char model[20];
13 Date fdate;
14 Domain domain;
15 Grid gtsfc;
16 Grid grsfc;
17 Grid gt0;
18 Grid gt60;
19 Grid gt150;
20 Grid gr150;
21 int fhour;
22 int hour;
23 bool use_hdr;
24
25 public:
26 RadMask();
27 ~RadMask();
28 int init();
29 int setModel( const char *mod );
31 inline int setForeHour( int val ){ fhour = val; return 1; };
33 inline int useHdrFile( bool val ){ use_hdr = val; return 1; };
34 int getDate( Date &rdate );
35 int setDomain( DomainVal &dv );
36 int setDomain( Domain &dom );
37 int getGrids( Filename &filename );
38 int getGrids( Date &date );
39 int getGrids( const char *file );
40 int getGrids();
42 inline float getTSfc( EarthPoint &ept ){ return gtsfc.getValue(ept); };
44 inline float getRSfc( EarthPoint &ept ){ return grsfc.getValue(ept); };
46 inline float getT0( EarthPoint &ept ){ return gt0.getValue(ept); };
48 inline float getT60( EarthPoint &ept ){ return gt60.getValue(ept); };
50 inline float getT150( EarthPoint &ept ){ return gt150.getValue(ept); };
52 inline float getR150( EarthPoint &ept ){ return gr150.getValue(ept); };
54 inline float getTSfc( int i, int j ){ return gtsfc.getValue(i,j); };
56 inline float getRSfc( int i, int j ){ return grsfc.getValue(i,j); };
58 inline float getT0( int i, int j ){ return gt0.getValue(i,j); };
60 inline float getT60( int i, int j ){ return gt60.getValue(i,j); };
62 inline float getT150( int i, int j ){ return gt150.getValue(i,j); };
64 inline float getR150( int i, int j ){ return gr150.getValue(i,j); };
65 int getWinterFlag( float tsfc, float t60, float t150 );
66 int getWinterFlag( int i, int j );
67 int getWinterFlag( EarthPoint &ept );
68 int getWinter( Grid &mask_grid );
69 int getSiteFilter( EarthPoint &ept );
70 int print();
71 };
72}
73#endif
This class stores date and time information.
Definition Date.h:8
This class stores and manipulates domain data.
Definition Domain.h:19
This class creates filenames.
Definition Filename.h:11
This class defines a grid.
Definition Grid.h:20
float getValue(int x, int y)
Definition Grid.cc:772
This class sets up various masks for radar data based on model data.
Definition RadMask.h:11
int setDomain(DomainVal &dv)
Definition RadMask.cc:74
float getR150(EarthPoint &ept)
Definition RadMask.h:52
int setModel(const char *mod)
Definition RadMask.cc:64
int getDate(Date &rdate)
Definition RadMask.cc:93
int setForeHour(int val)
Definition RadMask.h:31
int print()
Definition RadMask.cc:443
float getT150(EarthPoint &ept)
Definition RadMask.h:50
int getGrids()
Definition RadMask.cc:244
float getRSfc(EarthPoint &ept)
Definition RadMask.h:44
~RadMask()
Definition RadMask.cc:38
float getT0(int i, int j)
Definition RadMask.h:58
float getT60(EarthPoint &ept)
Definition RadMask.h:48
float getTSfc(EarthPoint &ept)
Definition RadMask.h:42
float getTSfc(int i, int j)
Definition RadMask.h:54
float getT0(EarthPoint &ept)
Definition RadMask.h:46
int useHdrFile(bool val)
Definition RadMask.h:33
float getRSfc(int i, int j)
Definition RadMask.h:56
float getT150(int i, int j)
Definition RadMask.h:62
int init()
Definition RadMask.cc:44
float getR150(int i, int j)
Definition RadMask.h:64
float getT60(int i, int j)
Definition RadMask.h:60
int getWinterFlag(float tsfc, float t60, float t150)
Definition RadMask.cc:258
int getWinter(Grid &mask_grid)
Definition RadMask.cc:303
int getSiteFilter(EarthPoint &ept)
Definition RadMask.cc:330
RadMask()
Definition RadMask.cc:31
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct defines basic domain parameters.
Definition DomainVal.h:5
This struct defines earth point values (lat, lon, elev)
Definition EarthPoint.h:5