polaris.mesh.reconstruct.compute_reconstruction_weights

polaris.mesh.reconstruct.compute_reconstruction_weights(ds: Dataset, location: Literal['cell', 'vertex'] = 'cell') → Dataset[source]

Compute the weights and stencil indices needed for reconstruction a edge normal vector field at cell or vertex centers

Parameters:
  • ds (xr.Dataset) – MPAS mesh dataset

  • location (str ["cell", "vertex"]) – Point location where the reconstruction occurs

Returns:

ds (xr.Dataset) – A minimal dataset containing the reconstruction stencil, edge-count, and coefficient fields for the requested reconstruction point location.