uxarray.io._mpas._read_mpas#
- uxarray.io._mpas._read_mpas(ext_ds, use_dual=False)#
Function to read in a MPAS Grid dataset and encode either the Primal or Dual Mesh in the UGRID conventions.
Adheres to the MPAS Mesh Specifications outlined in the following document: https://mpas-dev.github.io/files/documents/MPAS-MeshSpec.pdf
- Parameters:
ext_ds (xarray.Dataset, required) – MPAS datafile of interest
use_dual (bool, optional) – Flag to select whether to encode the Dual-Mesh. Defaults to False
- Returns:
ds – UGRID dataset derived from inputted MPAS dataset
- Return type: