-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHDFEOS2ArrayMissField.h
More file actions
49 lines (38 loc) · 1.54 KB
/
HDFEOS2ArrayMissField.h
File metadata and controls
49 lines (38 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/////////////////////////////////////////////////////////////////////////////
// This file is part of the hdf4 data handler for the OPeNDAP data server.
// It retrieves the missing "third-dimension" values of the HDF-EOS2 Grid.
// Some third-dimension coordinate variable values are not provided.
// What we do here is to provide natural number series(1,2,3, ...) for
// these missing values. It doesn't make sense to visualize or analyze
// with vertical cross-section. One can check the data level by level.
// Authors: MuQun Yang <myang6@hdfgroup.org>
// Copyright (c) 2009 The HDF Group
/////////////////////////////////////////////////////////////////////////////
#ifdef USE_HDFEOS2_LIB
#ifndef HDFEOS2ARRAY_MISSFIELD_H
#define HDFEOS2ARRAY_MISSFIELD_H
#include <libdap/Array.h>
class HDFEOS2ArrayMissGeoField:public libdap::Array
{
public:
HDFEOS2ArrayMissGeoField (int rank, int tnumelm, const std::string & n = "", libdap::BaseType * v = 0):
libdap::Array (n, v), rank (rank), tnumelm (tnumelm) {
}
virtual ~ HDFEOS2ArrayMissGeoField ()
{
}
// Standard way to pass the coordinates of the subsetted region from the client to the handlers
int format_constraint (int *cor, int *step, int *edg);
libdap::BaseType *ptr_duplicate ()
{
return new HDFEOS2ArrayMissGeoField (*this);
}
virtual bool read ();
private:
// Field array rank
int rank;
// Total number of elements
int tnumelm;
};
#endif
#endif