mpas_tools.ocean.transects.interp_mpas_to_transect_triangles¶
- mpas_tools.ocean.transects.interp_mpas_to_transect_triangles(dsTransectTriangles, da)[source]¶
- Interpolate a 3D ( - nCellsby- nVertLevels) 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 - nTransectTrianglesand- nTriangleNodes(in addition to whatever dimensions were in- dabesides- nCellsand- nVertLevels)