oocgcm.core.grids.generic_2d_grid.scalar_outer_product

generic_2d_grid.scalar_outer_product(scalararray, vectorfield)

Return the outer product of a scalar (t location) with a two-dimensional vector field (u,v location)

So far, only available for vector fields at u,v grid_location.

Parameters:

scalararray : xarray.DataArray

vectorfield : VectorField2d namedtuple

two-dimensional vector field at u,v grid_location

Notes

Relocates scalararray at u,v grid_location then multiply each component of vectorfield by the relocated scalararray.