unifhy.LatLonGrid.spans_same_region_as

LatLonGrid.spans_same_region_as(grid, ignore_z=False)

Compare equality in region spanned between the grid and another instance of Grid.

For each axis, the lower bound of their first cell and the upper bound of their last cell are compared.

Parameters
grid: Grid

The other grid to be compared against this grid. Note, the two grids must be of the same type (e.g. LatLonGrid).

ignore_z: bool, optional

If True, the dimension coordinates along the Z axes of the Grid instances will not be compared. If not provided, set to default value False (i.e. Z is not ignored).

Returns

bool