/
var_info_python.h
81 lines (54 loc) · 2.07 KB
/
var_info_python.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
// ** Copyright UCAR (c) 1992 - 2020
// ** University Corporation for Atmospheric Research (UCAR)
// ** National Center for Atmospheric Research (NCAR)
// ** Research Applications Lab (RAL)
// ** P.O.Box 3000, Boulder, Colorado, 80307-3000, USA
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
///////////////////////////////////////////////////////////////////////////////
#ifndef __VAR_INFO_PYTHON_H__
#define __VAR_INFO_PYTHON_H__
///////////////////////////////////////////////////////////////////////////////
#include "var_info.h"
#include "vx_config.h"
#include "data_file_type.h"
///////////////////////////////////////////////////////////////////////////////
static const char met_python_input_arg [] = "MET_PYTHON_INPUT_ARG";
///////////////////////////////////////////////////////////////////////////////
class VarInfoPython : public VarInfo
{
private:
GrdFileType Type;
void init_from_scratch();
void assign(const VarInfoPython &);
public:
VarInfoPython();
~VarInfoPython();
VarInfoPython(const VarInfoPython &);
VarInfoPython & operator=(const VarInfoPython &);
void dump(ostream &) const;
void clear();
//
// get stuff
//
GrdFileType file_type() const;
//
// set stuff
//
void set_file_type(const GrdFileType);
void set_dict(Dictionary &);
//
// do stuff
//
bool is_precipitation() const;
bool is_specific_humidity() const;
bool is_u_wind() const;
bool is_v_wind() const;
bool is_wind_speed() const;
bool is_wind_direction() const;
};
///////////////////////////////////////////////////////////////////////////////
inline GrdFileType VarInfoPython::file_type() const { return(Type); }
///////////////////////////////////////////////////////////////////////////////
#endif // __VAR_INFO_PYTHON_H__
///////////////////////////////////////////////////////////////////////////////