cf.Bounds.contiguous¶

Bounds.contiguous(overlap=True, direction=None)[source]

Return True if the bounds are contiguous.

Bounds are contiguous if the cell boundaries match up, or overlap, with the boundaries of adjacent cells.

In general, it is only possible for 1 or 0 variable dimensional variables with bounds to be contiguous, but size 1 variables with any number of dimensions are always contiguous.

An exception is raised if the variable is multdimensional and has more than one element.

New in version 2.0.