OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
HDFEOS5CFMissLLArray.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 _HDFEOS5CFMISSLLARRAY_H
33 #define _HDFEOS5CFMISSLLARRAY_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 HDFEOS5CFMissLLArray:public Array {
46  public:
47  HDFEOS5CFMissLLArray(int rank, const string & filename, const hid_t fileid, const string &varfullpath, CVType cvartype,float point_lower, float point_upper, float point_left, float point_right, EOS5GridPRType eos5_pixelreg, EOS5GridOriginType eos5_origin, EOS5GridPCType eos5_projcode, int xdimsize, int ydimsize, const string & n="", BaseType * v = 0):
48  Array(n,v),
49  rank(rank),
50  filename(filename),
51  fileid(fileid),
52  varname(varfullpath),
53  cvartype(cvartype),
54  point_lower(point_lower),
55  point_upper(point_upper),
56  point_left(point_left),
57  point_right(point_right),
58  eos5_pixelreg(eos5_pixelreg),
59  eos5_origin(eos5_origin),
60  eos5_projcode(eos5_projcode),
61  xdimsize(xdimsize),
62  ydimsize(ydimsize) {
63  }
64 
65  virtual ~ HDFEOS5CFMissLLArray() {
66  }
67  virtual BaseType *ptr_duplicate();
68  virtual bool read();
69  int format_constraint (int *cor, int *step, int *edg);
70 
71  private:
72  int rank;
73  string filename;
74  hid_t fileid;
75  string varname;
76  CVType cvartype;
77  float point_lower;
78  float point_upper;
79  float point_left;
80  float point_right;
81  EOS5GridPRType eos5_pixelreg;
82  EOS5GridOriginType eos5_origin;
83  EOS5GridPCType eos5_projcode;
84  int xdimsize;
85  int ydimsize;
86 };
87 
88 #endif // _HDFEOS5CFMISSLLARRAY_H
89 
static class NCMLUtil overview
EOS5GridPRType
This file defines a few enum types used by HDF-EOS5 products.
Definition: HE5GridPara.h:3
CVType
Definition: HDF5CF.h:53
EOS5GridOriginType
Definition: HE5GridPara.h:8
HDFEOS5CFMissLLArray(int rank, const string &filename, const hid_t fileid, const string &varfullpath, CVType cvartype, float point_lower, float point_upper, float point_left, float point_right, EOS5GridPRType eos5_pixelreg, EOS5GridOriginType eos5_origin, EOS5GridPCType eos5_projcode, int xdimsize, int ydimsize, const string &n="", BaseType *v=0)
This class specifies the core engineering of mapping HDF5 to DAP by following CF. ...
EOS5GridPCType
Definition: HE5GridPara.h:13