WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
NidsImage.h
1#ifndef _WINC_NIDSIMAGE
2#define _WINC_NIDSIMAGE
3
4#include <WXP/Date.h>
5#include <WXP/Domain.h>
6#include <WXP/Filename.h>
7#include <WXP/FloatArray.h>
8#include <WXP/Grid.h>
9#include <WXP/Image.h>
10#include <WXP/NidsInfo.h>
11#include <WXP/NidsData.h>
12
13namespace WXP {
14 class NidsImage {
15 int cradius;
16 int ramp_cut;
17 int ramp_len;
18 float thres[256];
19 int mix[256];
20 int snow[256];
21 int nthres;
22 unsigned char *mdata; // Mask data for image
23 int clear_air;
24 int interp;
25 int type;
26 int mode;
27 int box;
28
29 NidsInfo info;
30 NidsData data;
31
32 public:
33 NidsImage();
34 NidsImage( const char *str );
35 int init();
36 int setParam( const char *str );
37 inline int setClutterRad( int crad ){ cradius = crad; return 1; };
38 int setRamp( int cut, int len );
39 inline int getRampCut(){ return ramp_cut; };
40 inline int getRampLen(){ return ramp_len; };
41 int setThres( FloatArray &array );
42 int setThres( const char *str );
43 int setClearAirUse( int val );
44 inline int getClearAirUse(){ return clear_air; };
45 int getMode();
46 int getIndex( float val );
47 int setup( Image &image );
48 int readSite( Filename &filename );
49 int addSite( Image &image );
50 int addSite( Filename &filename, Image &image );
51 int setImage( Filename &filename, Image &image );
52 int applyMask(Image &image, Grid &mask);
53 int print();
54 int printSite();
55
56 enum Type {
57 BREF,
58 RALA
59 };
60 enum ScanType {
61 RADIAL,
62 RASTOR
63 };
64 };
65}
66#endif
This class creates filenames.
Definition Filename.h:11
This class creates an integer array.
Definition FloatArray.h:7
This class defines a grid.
Definition Grid.h:20
This class defines an image.
Definition Image.h:19
This class converts and merges NIDS data into an Image.
Definition NidsImage.h:14
int getIndex(float val)
Definition NidsImage.cc:190
int setRamp(int cut, int len)
Definition NidsImage.cc:108
int setThres(FloatArray &array)
Definition NidsImage.cc:118
int setImage(Filename &filename, Image &image)
Definition NidsImage.cc:501
int readSite(Filename &filename)
Definition NidsImage.cc:207
int setParam(const char *str)
Definition NidsImage.cc:77
int applyMask(Image &image, Grid &mask)
Definition NidsImage.cc:700
NidsImage()
Definition NidsImage.cc:35
int addSite(Image &image)
Definition NidsImage.cc:257
int init()
Definition NidsImage.cc:51
int printSite()
Definition NidsImage.cc:763
int setClearAirUse(int val)
Definition NidsImage.cc:180
int print()
Definition NidsImage.cc:748
int getMode()
Definition NidsImage.cc:236
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct stores NIDS data.
Definition NidsData.h:14
This struct stores NIDS header data.
Definition NidsInfo.h:12