mpas_tools.ocean.viz.transect.interp_mpas_to_transect_nodes

mpas_tools.ocean.viz.transect.interp_mpas_to_transect_nodes(ds_transect, da)[source]

Interpolate an MPAS-Ocean DataArray with dimensions nCells by either nVertLevels or nVertLevelsP1 to transect nodes, linearly interpolating fields between the closest neighboring cells

Parameters:
  • ds_transect (xarray.Dataset) – A dataset that defines an MPAS-Ocean transect, the results of calling find_transect_levels_and_weights()

  • da (xarray.DataArray) – An MPAS-Ocean field with dimensions nCells` and either nVertLevels or nVertLevelsP1 (possibly among others)

Returns:

da_nodes (xarray.DataArray) – The data array interpolated to transect nodes with dimensions nHorizNodes and nVertNodes (in addition to whatever dimensions were in da besides nCells and either nVertLevels or nVertLevelsP1)