Skip to contents

The diagnostic companion to grid_equal(): names the FIRST differing component (CRS, resolution, extent offset in pixels, dims) so a "grids differ" abort tells the user what to fix rather than only that something is wrong. Embedded in every alignment error.

Usage

grid_diff(a, b, tol = 1e-09)

Arguments

a, b

GridSpec objects.

tol

Numeric tolerance, as in grid_equal().

Value

A single character description; "grids are equal" when grid_equal() holds.