bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
HDFSPArrayMissField.h
1
2// This file is part of the hdf4 data handler for the OPeNDAP data server.
3// It retrieves the missing fields for some special NASA HDF4 data products.
4// The products include TRMML2_V6,TRMML3B_V6,CER_AVG,CER_ES4,CER_CDAY,CER_CGEO,CER_SRB,CER_SYN,CER_ZAVG,OBPGL2,OBPGL3
5// To know more information about these products,check HDFSP.h.
6// Some third-dimension coordinate variable values are not provided.
7// What we do here is to provide natural number series(1,2,3, ...) for
8// these missing values. It doesn't make sense to visualize or analyze
9// with vertical cross-section. One can check the data level by level.
10
11// Authors: Kent Yang <myang6@hdfgroup.org>
12// Copyright (c) The HDF Group
14
15#ifndef HDFSPARRAY_MISSFIELD_H
16#define HDFSPARRAY_MISSFIELD_H
17
18#include <libdap/Array.h>
19
20class HDFSPArrayMissGeoField:public libdap::Array
21{
22 public:
23 HDFSPArrayMissGeoField (int rank, int tnumelm, const std::string & n = "", libdap::BaseType * v = nullptr):
24 libdap::Array (n, v), rank (rank), tnumelm (tnumelm) {
25 }
26 ~ HDFSPArrayMissGeoField () override = default;
27
28 // Standard way of DAP handlers to pass the coordinates of the subsetted region to the handlers
29 // Return the number of elements to read.
30 int format_constraint (int *cor, int *step, int *edg);
31
32 libdap::BaseType *ptr_duplicate () override
33 {
34 return new HDFSPArrayMissGeoField (*this);
35 }
36
37 bool read () override;
38
39 private:
40
41 int rank;
42 int tnumelm;
43};
44
45
46#endif