OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
HDF5GMCFSpecialCVArray.h
Go to the documentation of this file.
1 // This file is part of the hdf5_handler implementing for the CF-compliant
2 // Copyright (c) 2011-2013 The HDF Group, Inc. and OPeNDAP, Inc.
3 //
4 // This is free software; you can redistribute it and/or modify it under the
5 // terms of the GNU Lesser General Public License as published by the Free
6 // Software Foundation; either version 2.1 of the License, or (at your
7 // option) any later version.
8 //
9 // This software is distributed in the hope that it will be useful, but
10 // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 // License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 //
18 // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
19 // You can contact The HDF Group, Inc. at 1800 South Oak Street,
20 // Suite 203, Champaign, IL 61820
21 
31 
32 #ifndef _HDF5GMCFSpecialCVARRAY_H
33 #define _HDF5GMCFSpecialCVARRAY_H
34 
35 // STL includes
36 #include <string>
37 #include <vector>
38 
39 // DODS includes
40 #include "HDF5CF.h"
41 #include <Array.h>
42 
43 using namespace libdap;
44 
45 class HDF5GMCFSpecialCVArray:public Array {
46  public:
47  HDF5GMCFSpecialCVArray(H5DataType dtype, int tnumelm, const string &varfullpath, H5GCFProduct product_type, const string & n="", BaseType * v = 0):
48  Array(n,v),
49  dtype(dtype),
50  tnumelm(tnumelm),
51  varname(varfullpath),
52  product_type(product_type)
53  {
54  }
55 
57  }
58  virtual BaseType *ptr_duplicate();
59  virtual bool read();
60  int format_constraint (int *cor, int *step, int *edg);
61 
62 
63  private:
64  H5DataType dtype;
65  int tnumelm;
66  string varname;
67  H5GCFProduct product_type;
68  CVType cvartype;
69 
70  // GPM version 7 nlayer values are from the document
71  void obtain_gpm_l3_layer(int, vector<int>&,vector<int>&,vector<int>&);
72  void obtain_gpm_l3_hgt(int, vector<int>&,vector<int>&,vector<int>&);
73  void obtain_gpm_l3_nalt(int, vector<int>&,vector<int>&,vector<int>&);
74 
75 };
76 
77 #endif // _HDF5GMCFSpecialCVARRAY_H
78 
HDF5GMCFSpecialCVArray(H5DataType dtype, int tnumelm, const string &varfullpath, H5GCFProduct product_type, const string &n="", BaseType *v=0)
static class NCMLUtil overview
H5DataType
Definition: HDF5CFUtil.h:54
H5GCFProduct
CVType
Definition: HDF5CF.h:53
This class specifies the core engineering of mapping HDF5 to DAP by following CF. ...