oocgcm.core.grids.generic_2d_grid.horizontal_gradient_vector¶
- generic_2d_grid.horizontal_gradient_vector(scalararray)¶
Return the horizontal gradient of a scalar field defined at t-points.
Parameters: scalararray : xarray.DataArray
xarray of a scalar variable at grid_location=’t’
Returns: vectorfield : VectorField2d namedtuple
x and y component of the horizontal gradient at u,v-points