uxarray
uxarray copied to clipboard
Dual Mesh Construction
Closes #825
Overview
Constructs the dual mesh of a grid using face_centers
and node_face_connectivity
Expected Usage
import uxarray as ux
grid_path = "/path/to/grid.nc"
grid = ux.open_grid(grid_path)
dual = grid.compute_dual()
PR Checklist
General
- [x] An issue is linked created and linked
- [x] Add appropriate labels
- [x] Filled out Overview and Expected Usage (if applicable) sections
Testing
- [x] Adequate tests are created if there is new functionality
- [x] Tests cover all possible logical paths in your function
- [x] Tests are not too basic (such as simply calling a function and nothing else)
Documentation
- [x] Docstrings have been added to all new functions
- [x] Docstrings have updated with any function changes
- [x] Internal functions have a preceding underscore (
_
) and have been added todocs/internal_api/index.rst
- [x] User functions have been added to
docs/user_api/index.rst