Пример #1
0
def test_RegionMask_buildMask():
    # Build from another srs
    rm = RegionMask.load(AACHEN_SHAPE_PATH, srs=EPSG3035, pixelRes=100)
    compare(rm.mask.sum(), 70944)
    compare(rm.mask.std(), 0.498273451386)

    print("RegionMask_buildMask passed")
Пример #2
0
def test_RegionMask_buildMask():
    # Build from another srs
    rm = RegionMask.load(AACHEN_SHAPE_PATH, srs=EPSG3035, pixelRes=100)
    assert np.isclose(rm.mask.sum(), 70944)
    assert np.isclose(rm.mask.std(), 0.498273451386)