22 #include "InternalErr.h"
30 BESDEBUG(
"h4",
"Coming to HDFSPArrayMissGeoField read "<<endl);
48 if (nelms == tnumelm) {
49 for (
int i = 0; i < nelms; i++)
51 set_value ((dods_int32 *) &val[0], nelms);
55 throw InternalErr (__FILE__, __LINE__,
56 "Currently the rank of the missing field should be 1");
58 for (
int i = 0; i < count[0]; i++)
59 val[i] = offset[0] + step[0] * i;
60 set_value ((dods_int32 *) &val[0], nelms);
74 Dim_iter p = dim_begin ();
76 while (p != dim_end ()) {
78 int start = dimension_start (p,
true);
79 int stride = dimension_stride (p,
true);
80 int stop = dimension_stop (p,
true);
84 if (stride < 0 || start < 0 || stop < 0 || start > stop) {
87 oss <<
"Array/Grid hyperslab indices are bad: [" << start <<
88 ":" << stride <<
":" << stop <<
"]";
89 throw Error (malformed_expr, oss.str ());
93 if (start == 0 && stop == 0 && stride == 0) {
94 start = dimension_start (p,
false);
95 stride = dimension_stride (p,
false);
96 stop = dimension_stop (p,
false);
101 count[id] = ((stop - start) / stride) + 1;
105 "=format_constraint():"
106 <<
"id=" <<
id <<
" offset=" << offset[
id]
107 <<
" step=" << step[
id]
108 <<
" count=" << count[
id]
int format_constraint(int *cor, int *step, int *edg)
#define BESDEBUG(x, y)
macro used to send debug information to the debug stream