bes Updated for version 3.20.13
HDF5GMCFMissNonLLCVArray.cc
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-2016 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#include "config_hdf5.h"
33#include <iostream>
34#include <sstream>
35#include <cassert>
36#include <BESDebug.h>
37#include <libdap/InternalErr.h>
38
40#include "HDF5RequestHandler.h"
41
42using namespace std;
43using namespace libdap;
44
45BaseType *HDF5GMCFMissNonLLCVArray::ptr_duplicate()
46{
47 return new HDF5GMCFMissNonLLCVArray(*this);
48}
49
50bool HDF5GMCFMissNonLLCVArray::read()
51{
52 BESDEBUG("h5","Coming to HDF5GMCFMissNonLLCVArray read "<<endl);
53
54 // No need to cache this since the calculation is trival
55 read_data_NOT_from_mem_cache(false,nullptr);
56
57#if 0
58 if(nullptr == HDF5RequestHandler::get_srdata_mem_cache())
59 read_data_NOT_from_mem_cache(false,nullptr);
60 else {
61 // Notice for this special fake variable case, we just use the info. from DAP.
62 // dataset() is the file name and name() is the HDF5 unique var name.
63 string cache_key = dataset() + name();
64 handle_data_with_mem_cache(H5INT32,tnumelm,1,cache_key);
65 }
66
67#endif
68 return true;
69}
70
71void HDF5GMCFMissNonLLCVArray::read_data_NOT_from_mem_cache(bool /*add_cache*/,void*/*buf*/) {
72
73 BESDEBUG("h5","Coming to HDF5GMCFMissNonLLCVArray: read_data_NOT_from_mem_cache "<<endl);
74 write_nature_number_buffer(rank,tnumelm);
75
76 return;
77}
This class specifies the retrieval of the values of non-lat/lon coordinate variables for general HDF5...
include the entry functions to execute the handlers