oocgcm.core.grids.generic_2d_grid.horizontal_gradient¶
- generic_2d_grid.horizontal_gradient(datastructure)¶
Return the horizontal gradient of the input datastructure.
Parameters: datastructure : xarray.DataArray or VectorField2d Returns: result : VectorField2d or Tensor2d See also
self.horizontal_gradient_vector, self.horizontal_gradient_tensor
Methods
calls horizontal_gradient_vector or horizontal_gradient_tensor depending on th type of the input datastructure.