VAPoR  0.1
WrfVDCcreator.h
Go to the documentation of this file.
1 #ifndef WRF2VDF_H
2 #define WRF2VDF_H
3 
4 #include <iostream>
5 #include <cstdio>
6 #include <vapor/OptionParser.h>
7 #include <vapor/MetadataVDC.h>
8 #include <vapor/DCReaderWRF.h>
9 #include <vapor/WaveCodecIO.h>
10 #include <vapor/WaveletBlock3DBufWriter.h>
11 #include <vapor/CFuncs.h>
12 
13 namespace VAPoR {
14 
16 public:
17  Wrf2vdf();
18  virtual ~Wrf2vdf();
19 
20  void deleteObjects();
21  void GetVariables(const VDFIOBase *vdfio,
22  const DCReaderWRF *wrfData,
23  const vector <string> &in_varnames,
24  vector <string> &out_varnames);
25 
32  int launchWrf2Vdf(int argc, char **argv, DCReaderWRF *optionalReader = NULL);
33 
34 private:
35  string _progname;
36  DCReaderWRF *wrfData;
37  WaveCodecIO *wcwriter;
38  //
39  // Missing data masks
40  //
41  unsigned char *_mvMask3D;
42  unsigned char *_mvMask2DXY;
43  unsigned char *_mvMask2DXZ;
44  unsigned char *_mvMask2DYZ;
45 
46  //
47  // Command line options passed to launch2vdf
48  //
49  vector <string> _vars;
50  int _numts;
51  int _startts;
52  int _level;
53  int _lod;
54  int _nthreads;
58 
59 
60  void Usage(VetsUtil::OptionParser &op, const char * msg);
61  void GetTimeMap(const VDFIOBase *vdfio,
62  const DCReaderWRF *wrfData,
63  int startts,
64  int numts,
65  map <size_t, size_t> &timemap);
66  int CopyVar(VDFIOBase *vdfio,
67  DCReaderWRF *wrfData,
68  int vdcTS,
69  int ncdfTS,
70  string vdcVar,
71  string ncdfVar,
72  int level,
73  int lod);
74 
75 
76 };
77 
78 };
79 
80 #endif
#define VDF_API
Definition: common.h:61
A sub-region reader for VDF files.
Definition: WaveCodecIO.h:38
VetsUtil base class.
Definition: MyBase.h:68
Abstract base class for performing data IO to a VDC.
Definition: VDFIOBase.h:27