cdms2.hgrid¶
-
allclose
(ax1, ax2, rtol=1e-05, atol=1e-08)[source]¶ All close
- Parameters
- ax1, ax2array_like
- Returns
- bool
True if all elements of axes ax1 and ax2 are close, in the sense of numpy.ma.allclose.
- See Alsoall, any
Examples
>>> a = ma.array([1e10, 1e-7, 42.0], mask=[0, 0, 1]) >>> a masked_array(data = [10000000000.0 1e-07 --], mask = [False False True], fill_value = 1e+20) >>> b = ma.array([1e10, 1e-8, 42.0], mask=[0, 0, 1]) >>> ma.allclose(a, b) False