VAPoR  0.1
Copy2VDF.h
Go to the documentation of this file.
1 #ifndef COPYTOVDF_H
2 #define COPYTOVDF_H
3 
4 #include <iostream>
5 #include <cstdio>
6 #include <vapor/OptionParser.h>
7 #include <vapor/MetadataVDC.h>
8 #include <vapor/DCReader.h>
9 #include <vapor/WaveCodecIO.h>
10 #include <vapor/WaveletBlock3DBufWriter.h>
11 #include <vapor/CFuncs.h>
12 
13 namespace VAPoR {
14 
16 public:
17  Copy2VDF();
18  ~Copy2VDF();
19 
26 int launch2vdf(int argc, char **argv, string dataType, DCReader *myReader=NULL);
27 
28 private:
29  string _progname;
30  DCReader *DCData;
31  WaveCodecIO *wcwriter;
32  //
33  // Missing data masks
34  //
35  unsigned char *_mvMask3D;
36  unsigned char *_mvMask2DXY;
37  unsigned char *_mvMask2DXZ;
38  unsigned char *_mvMask2DYZ;
39 
40  //
41  // Command line options passed to launch2vdf
42  //
43  vector <string> _vars;
44  int _numts;
45  int _startts;
46  int _level;
47  int _lod;
48  int _nthreads;
52 
53 
54  void Usage(VetsUtil::OptionParser &op, const char * msg);
55  void GetTimeMap(const VDFIOBase *vdfio,
56  const DCReader *DCData,
57  int startts,
58  int numts,
59  map <size_t, size_t> &timemap);
60  void MissingValue(VDFIOBase *vdfio,
61  DCReader *DCData,
62  size_t vdcTS,
63  string vdcVar,
64  string ncdfVar,
66  int slice,
67  float *buf);
68  int CopyVar(VDFIOBase *vdfio,
69  DCReader *DCData,
70  int vdcTS,
71  int ncdfTS,
72  string vdcVar,
73  string ncdfVar,
74  int level,
75  int lod);
76 
77 public:
78  void deleteObjects();
79  void GetVariables(const VDFIOBase *vdfio,
80  const DCReader *DCData,
81  const vector <string> &in_varnames,
82  vector <string> &out_varnames);
83 
84 };
85 
86 };
87 
88 #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