cmr.exchange.query.util
Documentation forthcoming
->base-coll
(->base-coll data)Documentation forthcoming
->coll
(->coll data)Documentation forthcoming
->query-string
(->query-string params)Convert to query string.
adjust-query-string
(adjust-query-string params)Special case query string adjustments.
ambiguous-style?
(ambiguous-style? raw-params)Documentation forthcoming
bounding-box->subset
(bounding-box->subset [lon-lo lat-lo lon-hi lat-hi])Documentation forthcoming
bounding-box-lat
(bounding-box-lat [_ lower-latitude _ upper-latitude])Documentation forthcoming
bounding-box-lon
(bounding-box-lon [lower-longitude _ upper-longitude _])Documentation forthcoming
coverage->collection
(coverage->collection coverage)Documentation forthcoming
coverage->granules
(coverage->granules coverage)Documentation forthcoming
empty-param?
(empty-param? param)Returns true if parameter is nil/empty/blank.
get-array-param
(get-array-param params param-key)This pulls parameters names like param[] out of the params and extracts their values as a collection.
get-matches
(get-matches regex elems)Documentation forthcoming
normalize-param
(normalize-param param)Documentation forthcoming
normalize-params
(normalize-params params)Documentation forthcoming
not-array?
(not-array? array)Documentation forthcoming
remove-keys-if
(remove-keys-if m f)Remove keys predicated on values.
seq->str
(seq->str data)Documentation forthcoming
split-comma->coll
(split-comma->coll data)Documentation forthcoming
split-comma->sorted-coll
(split-comma->sorted-coll data)Documentation forthcoming
style?
(style? record-constructor raw-params)(style? record-constructor raw-params other-allowed)This function checks the raw params to see if they have any keys that overlap with the WCS-style record.
subset->bounding-box
(subset->bounding-box elems)In the CMR and EDSC, a bounding box is defined by the lower-left corner to the upper-right, furthermore, they defined this as a flattened list, ordering with longitude first. As such, a bounding box is of the form: [lower-longitude, lower-latitude, upper-longitude, upper-latitude].
This is the form that this function returns.
subset->bounding-lat
(subset->bounding-lat elems)Documentation forthcoming
subset->bounding-lon
(subset->bounding-lon elems)Documentation forthcoming
temporal-seq->cmr-query
(temporal-seq->cmr-query data)Documentation forthcoming
unique-params-keys
(unique-params-keys record-constructor)(unique-params-keys record-constructor other-allowed)This function returns only the record fields that are unique to the record of the given style. This is done by checking against a hard-coded set of fields shared that have been declared as common to all other parameter styles (see the const namespace).
update-values
(update-values m keys f)Apply function to map based on list of keys.