コード例 #1
0
def test_get_surround_4_gids():
    """
    CubeGridRemap.get_surround_4_gids(): ne=30
    """
    from cube_remap import CubeGridRemap

    ne, ngq = 30, 4
    rotated = False
    cube = CubeGridRemap(ne, ngq, rotated)

    lat, lon = -0.78973737977, 0.0
    abp, ret_gids = cube.get_surround_4_gids(lat, lon)
    a_equal(ret_gids, [71754, 71755, 71758, 71759])