bes  Updated for version 3.20.6
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-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 "InternalErr.h"
38 
40 #include "HDF5RequestHandler.h"
41 
42 using namespace std;
43 using namespace libdap;
44 
45 BaseType *HDFEOS5CFMissNonLLCVArray::ptr_duplicate()
46 {
47  return new HDFEOS5CFMissNonLLCVArray(*this);
48 }
49 
50 bool HDFEOS5CFMissNonLLCVArray::read()
51 {
52  BESDEBUG("h5","Coming to HDFEOS5CFMissNonLLCVArray read "<<endl);
53 
54  // Don't use cache since the calculation is fairly small.
55  read_data_NOT_from_mem_cache(false,NULL);
56 #if 0
57  if(NULL == HDF5RequestHandler::get_srdata_mem_cache())
58  read_data_NOT_from_mem_cache(false,NULL);
59  else {
60  // Notice for this special fake variable case, we just use the info. from DAP.
61  // dataset() is the file name and name() is the HDF5 unique var name.
62  string cache_key = dataset() + name();
63  handle_data_with_mem_cache(H5INT32,tnumelm,1,cache_key);
64  }
65 #endif
66 
67  return true;
68 }
69 
70 void HDFEOS5CFMissNonLLCVArray::read_data_NOT_from_mem_cache(bool /*add_cache*/, void* /*buf*/)
71 {
72  BESDEBUG("h5","Coming to HDFEOS5CFMissNonLLCVArray: read_data_NOT_from_mem_cache "<<endl);
73  write_nature_number_buffer(rank,tnumelm);
74 
75  return;
76 }
HDFEOS5CFMissNonLLCVArray.h
This class specifies the retrieval of the missing lat/lon values for HDFEOS5 products.
libdap
Definition: BESDapFunctionResponseCache.h:35
HDF5RequestHandler.h
include the entry functions to execute the handlers
HDFEOS5CFMissNonLLCVArray
Definition: HDFEOS5CFMissNonLLCVArray.h:44