mpas_tools.ocean.transects.interp_mpas_to_transect_triangles¶
- mpas_tools.ocean.transects.interp_mpas_to_transect_triangles(dsTransectTriangles, da)[source]¶
Interpolate a 3D (
nCells
bynVertLevels
) MPAS-Ocean DataArray to transect nodes with constant values in each MPAS cell- Parameters:
dsTransectTriangles (xarray.Dataset) – A dataset that defines triangles making up an MPAS-Ocean transect, the results of calling
find_transect_levels_and_weights()
da (xarray.DataArray) – An MPAS-Ocean 3D field with dimensions nCells` and
nVertLevels
(possibly among others)
- Returns:
daNodes (xarray.DataArray) – The data array interpolated to transect nodes with dimensions
nTransectTriangles
andnTriangleNodes
(in addition to whatever dimensions were inda
besidesnCells
andnVertLevels
)