regionate.grid_conform.get_region_boundary_grid_indices¶
- regionate.grid_conform.get_region_boundary_grid_indices(lons, lats, grid)[source]¶
Find boundary coordinates and grid indices that approximate a polygon.
- Parameters:
- Returns:
(i_c, j_c, lons_c, lats_c, lons_uv, lats_uv)
i_c (“X”-axis grid indices of corner points)
j_c (“Y”-axis grid indices of corner points)
lons_c (longitudes of corner points)
lats_c (latitudes of corner points)
lons_uv (longitudes of (u,v) velocity faces)
lats_uv (latitudes of (u,v) velocity faces)