-
Notifications
You must be signed in to change notification settings - Fork 3
/
HDF5CFGeoCF1D.h
49 lines (36 loc) · 1.49 KB
/
HDF5CFGeoCF1D.h
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 hdf5 data handler for the OPeNDAP data server.
// Authors: MuQun Yang <myang6@hdfgroup.org>
// Copyright (c) 2017 The HDF Group
/////////////////////////////////////////////////////////////////////////////
#ifndef HDF5CFGEO_CF1D_H
#define HDF5CFGEO_CF1D_H
#include "HDF5BaseArray.h"
class HDF5CFGeoCF1D:public HDF5BaseArray
{
public:
HDF5CFGeoCF1D (EOS5GridPCType eos5_proj_code, double eos2_svalue, double eos2_evalue, int eos2_dim_size, const std::string & n = "", libdap::BaseType * v = 0):
HDF5BaseArray (n, v), proj_code(eos5_proj_code), svalue (eos2_svalue),evalue(eos2_evalue),tnumelm(eos2_dim_size) {
}
virtual ~ HDF5CFGeoCF1D ()
{
}
// 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);
virtual void read_data_NOT_from_mem_cache(bool add_cache,void*buf);
libdap::BaseType *ptr_duplicate ()
{
return new HDF5CFGeoCF1D (*this);
}
virtual bool read ();
private:
// Projection code, this is not currently used. It may be used as other projections are supported.
EOS5GridPCType proj_code;
// Start value
double svalue;
// End value
double evalue;
// Total number of elements
int tnumelm;
};
#endif