mpas_tools.ocean.viz.transect.interp_transect_grid_to_transect_nodes
- mpas_tools.ocean.viz.transect.interp_transect_grid_to_transect_nodes(ds_transect, da)[source]
Interpolate a DataArray on the original transect grid to nodes on the MPAS-Ocean transect.
- Parameters:
ds_transect (xarray.Dataset) – A dataset that defines an MPAS-Ocean transect, the results of calling
find_transect_levels_and_weights()
with thez_transect
parameter.da (xarray.DataArray) – An field on the original transect (defined at vertical locations corresponding to
z_transect
)
- Returns:
da_nodes (xarray.DataArray) – The data array interpolated to transect nodes with dimensions
nHorizNodes
andnVertNodes