def METHOD_NAME(surf1, surf2):
    for attr in ["ncol", "nrow", "xori", "yori", "xinc", "yinc"]:
        assert getattr(surf1, attr) == pytest.approx(
            getattr(surf2, attr), abs=1e-3, rel=1e-3
        )
    assert surf1.values.data.flatten().tolist() == pytest.approx(
        surf2.values.data.flatten().tolist(), abs=1e-3, rel=1e-3
    )