Cross-Sections#
This section demonstrates how to extract cross-sections from an unstructured grid using UXarray, which allows the analysis and visualization across slices of grids. Cross-sections can be performed directly on a ux.Grid
object or on a ux.UxDataArray
import uxarray as ux
import geoviews.feature as gf
import cartopy.crs as ccrs
import geoviews as gv
projection = ccrs.Robinson()
base_path = "../../test/meshfiles/ugrid/outCSne30/"
grid_path = base_path + "outCSne30.ug"
data_path = base_path + "outCSne30_vortex.nc"
uxds = ux.open_dataset(grid_path, data_path)
uxds["psi"].plot(
cmap="inferno",
periodic_elements="split",
projection=projection,
title="Global Plot",
)