mpas_tools.viz.transect.interp_mpas_horiz_to_transect_nodes
- mpas_tools.viz.transect.interp_mpas_horiz_to_transect_nodes(ds_transect, da)[source]
Interpolate a 2D (
nCells
) MPAS DataArray to transect nodes, linearly interpolating fields between the closest neighboring cells- Parameters:
ds_transect (xr.Dataset) – A dataset that defines an MPAS transect, the results of calling
find_spherical_transect_cells_and_weights()
orfind_planar_transect_cells_and_weights()
da (xr.DataArray) – An MPAS 2D field with dimensions nCells` (possibly among others)
- Returns:
da_nodes (xr.DataArray) – The data array interpolated to transect nodes with dimensions
nNodes
(in addition to whatever dimensions were inda
besidesnCells
)