polaris.mesh.connectivity.seed_mask_from_points

polaris.mesh.connectivity.seed_mask_from_points(ds_mesh, lon_seed, lat_seed)[source]

Find the cells nearest to a set of seed points.

Parameters:
  • ds_mesh (xarray.Dataset) – An MPAS mesh with lonCell and latCell in radians

  • lon_seed (array_like) – The longitudes of the seed points in degrees

  • lat_seed (array_like) – The latitudes of the seed points in degrees

Returns:

seed_mask (numpy.ndarray) – A boolean array of shape (nCells,) that is True at the cell nearest to each seed point