Server Side Processing Functions

From OPeNDAP Documentation
Revision as of 18:47, 7 January 2010 by Jimg (talk | contribs) (New page: == geogrid == The geogrid() function applies a constraint given in latitude and longitude to a DAP Grid variable. The arguments to the function are: geogrid(variable, top, left, bottom,...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
⧼opendap2-jumptonavigation⧽

geogrid

The geogrid() function applies a constraint given in latitude and longitude to a DAP Grid variable. The arguments to the function are:

geogrid(variable, top, left, bottom, right[, expression ...])

The variable is the data to be sub-sampled. The Top, left, bottom, right are the latitude and longitude coordinates of the northwesterm and southeastern corners of the selection box. The expressions consist of one or more quoted relational expressions. See grid() for more information about the expressions.

The function will always return a single Grid variable whose values completely cover the given region, although there may be cases when some additional data are also returned. If the longitude values 'wrap around' the right edge of the data, then the function will make two requests and return those joined together as a single Grid. If the data are stored with the southern latitudes at the top of the array, the return result will be flipped so that the northern latitudes are at the top.

grid

linear_scale

version