WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Lev2Image.h
1#ifndef _WINC_LEV2IMAGE
2#define _WINC_LEV2IMAGE
3
4#include <WXP/Date.h>
5#include <WXP/Domain.h>
6#include <WXP/Filename.h>
7#include <WXP/Grid.h>
8#include <WXP/Image.h>
9#include <WXP/Lev2Info.h>
10
11namespace WXP {
12 class Lev2Image {
13 int cradius;
14 int ramp_cut;
15 int ramp_len;
16 float thres[200];
17 int mix[200];
18 int snow[200];
19 int nthres;
20 int clear_air;
21 int interp;
22 int type;
23 int mode;
24
25 Lev2Info info;
26 Domain domain;
27 Date date;
28 int compress;
29 int scan_num;
30 float range; // Valid range to use in mosaic
31 int nbin; // Number of scan bins in array
32 int num; // Number of values in scan
33 float dist; // Distance between each value in scan
34 int valid; // Whether read in data is valid
35 float *data;
36 int data_size;
37
38 public:
39 Lev2Image();
40 Lev2Image( const char *str );
41 ~Lev2Image();
42 int init();
43 int setParam( const char *str );
44 int setFileType( int type );
45 int setRamp( int cut, int len );
46 int setThres( const char *str );
47 inline int setClutterRad( int crad ){ cradius = crad; return 1; };
48 inline int setCompress( int val ){ compress = val; return 1; };
49 int setClearAirUse( int val );
50 int getMode();
51 int getIndex( float val );
52 int readSite( Filename &filename );
53 int readSite( Filename &filename, const char *id );
54 int setup( Image &image );
55 int addSite( Image &image );
56 int addSite( Filename &filename, Image &image );
57 int setImage( Filename &filename, Image &image );
58 int applyMask(Image &image, Grid &mask);
59 int print();
60 int printSite();
61
62 };
63}
64#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
This class defines an image.
Definition Image.h:19
This class converts and merges Level II radar data into an Image.
Definition Lev2Image.h:12
int init()
Definition Lev2Image.cc:51
This structure stores LevelII radar header information.
Definition Lev2Info.h:7
All WXP classes fall under the WXP namespace.
Definition Angle.h:4