libdap Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
|
Classes | |
class | GeoConstraint |
class | GeoGridFunction |
class | GridFunction |
class | GridGeoConstraint |
struct | gse_arg |
class | GSEClause |
Enumerations | |
enum | relop { dods_nop_op , dods_greater_op , dods_greater_equal_op , dods_less_op , dods_less_equal_op , dods_equal_op , dods_not_equal_op } |
Functions | |
void | apply_grid_selection_expressions (Grid *grid, vector< GSEClause * > clauses) |
void | function_geogrid (int argc, BaseType *argv[], DDS &, BaseType **btpp) |
void | function_grid (int argc, BaseType *argv[], DDS &, BaseType **btpp) |
void | get_grids (BaseType *bt, vector< Grid * > *grids) |
void | get_grids (DDS &dds, vector< Grid * > *grids) |
void | parse_gse_expression (gse_arg *arg, BaseType *expr) |
bool | unit_or_name_match (set< string > units, set< string > names, const string &var_units, const string &var_name) |
bool | unit_or_name_match (set< string > units, set< string > names, const string &var_units, const string &var_name) |
enum functions::relop |
Enumerator | |
---|---|
dods_nop_op | |
dods_greater_op | |
dods_greater_equal_op | |
dods_less_op | |
dods_less_equal_op | |
dods_equal_op | |
dods_not_equal_op |
Definition at line 54 of file GSEClause.h.
Definition at line 169 of file grid_utils.cc.
The geogrid function returns the part of a Grid that includes a geographically specified rectangle. The arguments to the function are the name of a Grid, the left-top and right-bottom points of the rectangle and zero or more relational expressions of the sort that the grid function accepts. The constraints on the arguments are:
argc | The number of values in argv. |
argv | An array of BaseType pointers which hold the arguments to be passed to geogrid. The arguments may be Strings, Integers, or Reals, subject to the above constraints. |
btpp | A pointer to the return value; caller must delete. |
Definition at line 81 of file GeoGridFunction.cc.
The grid function uses a set of relational expressions to form a selection within a Grid variable based on the values in the Grid's map vectors. Thus, if a Grid has a 'temperature' map which ranges from 0.0 to 32.0 degrees, it's possible to request the values of the Grid that fall between 10.5 and 12.5 degrees without knowing to which array indexes those values correspond. The function takes one or more arguments:
<map var> <relop> <constant>
<constant> <relop> <map var> <relop> <constant>
Each of the relation expressions is applied to the Grid and the result is returned.
argc | The number of values in argv. |
argv | An array of BaseType pointers which hold the arguments to be passed to geogrid. The arguments may be Strings, Integers, or Reals, subject to the above constraints. |
btpp | A pointer to the return value; caller must delete. |
Definition at line 77 of file GridFunction.cc.
Recursively traverses the DDS and collects pointers to all of the Grids and places said pointers into the vector parameter 'grids'.
dds | The dds to search |
grids | A vector into which to place a pointer to every Grid in the DDS. |
Definition at line 90 of file grid_utils.cc.
Definition at line 124 of file grid_utils.cc.
bool functions::unit_or_name_match | ( | set< string > | units, |
set< string > | names, | ||
const string & | var_units, | ||
const string & | var_name ) |
Look in the containers which hold the units attributes and variable name prefixes which are considered as identifying a vector as being a latitude or longitude vector.
units | A container with a bunch of units attribute values. |
names | A container with a bunch of variable name prefixes. |
var_units | The value of the 'units' attribute for this variable. |
var_name | The name of the variable. |
Definition at line 78 of file GeoConstraint.cc.