-
Notifications
You must be signed in to change notification settings - Fork 22
/
test_met_478.cc
91 lines (50 loc) · 1.5 KB
/
test_met_478.cc
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
82
83
84
85
86
87
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
// ** Copyright UCAR (c) 1992 - 2021
// ** 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
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
////////////////////////////////////////////////////////////////////////
static const bool debug = false;
////////////////////////////////////////////////////////////////////////
using namespace std;
#include <iostream>
#include <fstream>
#include <unistd.h>
#include <stdlib.h>
#include <cmath>
#include "vx_util.h"
#include "config_file.h"
#include "config_constants.h"
#include "threshold.h"
////////////////////////////////////////////////////////////////////////
static ConcatString program_name;
////////////////////////////////////////////////////////////////////////
int main(int argc, char * argv [])
{
program_name = get_short_name(argv[0]);
MetConfig config;
//
// redirect stderr to stdout
//
if ( dup2(1, 2) < 0 ) {
cerr << "\n\n " << program_name << ": dup2 failed\n\n";
exit ( 1 );
}
config.set_debug(debug);
//
//
//
config.read_string("name=\"APCP\"; level=\"(*,*)\";");
config.read(replace_path(config_const_filename).c_str());
//
// dump
//
config.dump(cout);
//
// done
//
return ( 0 );
}
////////////////////////////////////////////////////////////////////////