salem.Grid.almost_equal

Grid.almost_equal(other, rtol=1e-05, atol=1e-08)[source]

A less strict comparison between grids.

Two grids are considered equal when their defining coordinates and projection are equal. grid1 == grid2 uses floating point equality, which is very strict; here we uses numpy’s is close instead.

(independent of the grid’s cornered or centered representation.)