bes  Updated for version 3.20.6
h5commoncfdap.h
Go to the documentation of this file.
1 // This file is part of hdf5_handler: an HDF5 file handler for the OPeNDAP
2 // data server.
3 
4 // Copyright (c) 2011-2016 The HDF Group, Inc. and OPeNDAP, Inc.
5 //
6 // This is free software; you can redistribute it and/or modify it under the
7 // terms of the GNU Lesser General Public License as published by the Free
8 // Software Foundation; either version 2.1 of the License, or (at your
9 // option) any later version.
10 //
11 // This software is distributed in the hope that it will be useful, but
12 // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 // License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 //
20 // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
21 // You can contact The HDF Group, Inc. at 1800 South Oak Street,
22 // Suite 203, Champaign, IL 61820
23 
32 
33 #ifndef _H5COMMONCFDAP_H
34 #define _H5COMMONCFDAP_H
35 
36 #include <string>
37 
38 #include <DMR.h>
39 #include <DDS.h>
40 #include <DAS.h>
41 #include "hdf5.h"
42 
43 #include "HDF5CF.h"
44 
45 
46 void gen_dap_onevar_dds(libdap::DDS &dds, const HDF5CF::Var*, const hid_t, const string &);
47 void gen_dap_oneobj_das(libdap::AttrTable*, const HDF5CF::Attribute*, const HDF5CF::Var*);
48 
49 void add_cf_grid_mapping_attr(libdap::DAS &das, const std::vector<HDF5CF::Var*>& vars, const std::string& cf_projection,
50  const std::string & dim0name, hsize_t dim0size, const std::string &dim1name, hsize_t dim1size);
51 #if 0
52 void add_cf_grid_cv_attrs(DAS & das, const vector<HDF5CF::Var*>& vars, EOS5GridPCType cv_proj_code,
53  float cv_point_lower, float cv_point_upper, float cv_point_left, float cv_point_right,
54  const vector<HDF5CF::Dimension*>& dims,const vector<double>& params,const unsigned short);
55 #endif
56 void add_cf_grid_cv_attrs(libdap::DAS & das, const std::vector<HDF5CF::Var*>& vars, EOS5GridPCType cv_proj_code,
57  const std::vector<HDF5CF::Dimension*>& dims,const std::vector<double>& params,const unsigned short);
58 
59 void add_cf_projection_attrs(libdap::DAS &,EOS5GridPCType ,const std::vector<double> &,const std::string&);
60 void add_cf_grid_cvs(libdap::DDS & dds, EOS5GridPCType cv_proj_code, float cv_point_lower, float cv_point_upper,
61  float cv_point_left, float cv_point_right, const std::vector<HDF5CF::Dimension*>& dims);
62 
63 void add_cf_grid_mapinfo_var(libdap::DDS &dds,const EOS5GridPCType,const unsigned short);
64 bool need_special_attribute_handling(const HDF5CF::Attribute*, const HDF5CF::Var*);
65 void gen_dap_special_oneobj_das(libdap::AttrTable*, const HDF5CF::Attribute*, const HDF5CF::Var*);
66 bool is_fvalue_valid(H5DataType, const HDF5CF::Attribute*);
67 void gen_dap_str_attr(libdap::AttrTable*, const HDF5CF::Attribute *);
68 void add_ll_valid_range(libdap::AttrTable*, bool is_lat);
69 void map_cfh5_attrs_to_dap4(const HDF5CF::Var*var,libdap::BaseType*new_var);
70 bool need_attr_values_for_dap4(const HDF5CF::Var*var);
71 void check_update_int64_attr(const std::string &, const HDF5CF::Attribute *);
72 
73 #endif
HDF5CF::Var
This class represents one HDF5 dataset(CF variable)
Definition: HDF5CF.h:259
HDF5CF.h
This class specifies the core engineering of mapping HDF5 to DAP by following CF.
HDF5CF::Attribute
This class represents one attribute.
Definition: HDF5CF.h:189