polaris.mesh.reconstruct.add_reconstruction_weights_to_dataset
- polaris.mesh.reconstruct.add_reconstruction_weights_to_dataset(ds_mesh: Dataset, location: Literal['cell', 'vertex'] = 'cell') Dataset[source]
Add vector-reconstruction stencil and weight fields to a mesh dataset.
- Parameters:
ds_mesh (xr.Dataset) – The mesh dataset to update
location (str ["cell", "vertex"]) – Point location where the reconstruction occurs
- Returns:
xr.Dataset – The updated dataset with reconstruction stencil, edge-count, and coefficient fields whose names depend on
location(see_RECONSTRUCTION_FIELD_NAMES)