mpas_tools.ocean.viz.transect.interp_mpas_to_transect_cells
- mpas_tools.ocean.viz.transect.interp_mpas_to_transect_cells(ds_transect, da)[source]
Interpolate an MPAS-Ocean DataArray with dimensions
nCellsby eithernVertLevels(levels) ornVertLevelsP1(interfaces) to transect 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
nVertLevelsornVertLevelsP1(possibly among others)
- Returns:
da_cells (xarray.DataArray) – The data array interpolated to transect cells with dimensions
nSegmentsandnHalfLevels(in addition to whatever dimensions were indabesidesnCellsand eithernVertLevelsornVertLevelsP1)