OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
HDFSPArrayMissField.h
Go to the documentation of this file.
1 // 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: MuQun Yang <myang6@hdfgroup.org>
12 // Copyright (c) 2010-2012 The HDF Group
14 
15 #ifndef HDFSPARRAY_MISSFIELD_H
16 #define HDFSPARRAY_MISSFIELD_H
17 
18 #include "Array.h"
19 using namespace libdap;
20 
21 class HDFSPArrayMissGeoField:public Array
22 {
23  public:
24  HDFSPArrayMissGeoField (int rank, int tnumelm, const string & n = "", BaseType * v = 0):
25  Array (n, v), rank (rank), tnumelm (tnumelm) {
26  }
28  {
29  }
30 
31  // Standard way of DAP handlers to pass the coordinates of the subsetted region to the handlers
32  // Return the number of elements to read.
33  int format_constraint (int *cor, int *step, int *edg);
34 
35  BaseType *ptr_duplicate ()
36  {
37  return new HDFSPArrayMissGeoField (*this);
38  }
39 
40  virtual bool read ();
41 
42  private:
43 
44  int rank;
45  int tnumelm;
46 };
47 
48 
49 #endif
HDFSPArrayMissGeoField(int rank, int tnumelm, const string &n="", BaseType *v=0)
static class NCMLUtil overview