uxarray.Grid.to_xarray

Contents

uxarray.Grid.to_xarray#

Grid.to_xarray(grid_format='ugrid')#

Returns an xarray.Dataset with the variables stored under the Grid encoded in a specific grid format.

Parameters:

grid_format (str, optional) – The desired grid format for the output dataset. One of “ugrid”, “exodus”, or “scrip”

Returns:

out_ds – Dataset representing the unstructured grid in a given grid format

Return type:

xarray.Dataset