bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
HDFEOS5CFMissNonLLCVArray.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-2023 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 410 E University Ave,
20// Suite 200, Champaign, IL 61820
21
31
32#include <iostream>
33#include <sstream>
34#include <memory>
35#include <BESDebug.h>
36
38#include "HDF5RequestHandler.h"
39
40using namespace std;
41using namespace libdap;
42
43BaseType *HDFEOS5CFMissNonLLCVArray::ptr_duplicate()
44{
45 auto HDFEOS5CFMissNonLLCVArray_unique = make_unique<HDFEOS5CFMissNonLLCVArray>(*this);
46 return HDFEOS5CFMissNonLLCVArray_unique.release();
47}
48
49bool HDFEOS5CFMissNonLLCVArray::read()
50{
51 BESDEBUG("h5","Coming to HDFEOS5CFMissNonLLCVArray read "<<endl);
52
53 // Don't use cache since the calculation is fairly small.
54 read_data_NOT_from_mem_cache(false,nullptr);
55#if 0
56 if(nullptr == HDF5RequestHandler::get_srdata_mem_cache())
57 read_data_NOT_from_mem_cache(false,nullptr);
58 else {
59 // Notice for this special fake variable case, we just use the info. from DAP.
60 // dataset() is the file name and name() is the HDF5 unique var name.
61 string cache_key = dataset() + name();
62 handle_data_with_mem_cache(H5INT32,tnumelm,1,cache_key);
63 }
64#endif
65
66 return true;
67}
68
69void HDFEOS5CFMissNonLLCVArray::read_data_NOT_from_mem_cache(bool /*add_cache*/, void* /*buf*/)
70{
71 BESDEBUG("h5","Coming to HDFEOS5CFMissNonLLCVArray: read_data_NOT_from_mem_cache "<<endl);
72 write_nature_number_buffer(rank,tnumelm);
73
74 return;
75}
include the entry functions to execute the handlers
This class specifies the retrieval of the missing lat/lon values for HDFEOS5 products.