The resolution within a region is determined by the width of the region and resolution at the bounding coordinates. Refer to Fig 16.1 as an illustration of specifying resolution within regions of longitude, latitude, and depth. Along any coordinate, if resolution at the bounding coordinates is the same, then resolution is constant across the region, otherwise it varies continuously from one boundary to the other according to an analytic function. The function describing the variation is prescribed to be a cosine. Although arbitrary, this function has two important properties: it allows the average resolution within any region to be calculated as an average of the two bounding resolutions; and it insures that the first derivative of the resolution vanishes at the region's boundaries. A vanishing first derivative allows regions to be smoothly joined. The only restriction is that there is an integral number of grid cells within a region.
To formalize these ideas, let a region be bounded along any coordinate
direction (latitude, longitude, or depth) by two points
and
at which resolutions are
and
.
The number of discrete cells N contained between
and
is
given by
where N must be an integer and the resolution for any cell
is given by
where
As an example, if
and
were
longitudes, the western edge of the first cell would be a
and
the eastern edge of cell N would be at
.