geocat.comp.gradient.gradient#
- geocat.comp.gradient.gradient(data, lon=None, lat=None)#
Extract and return the gradient values of a dataset at each point in the dataset. Assuming that the data points are on the surface of the WGS84 ellipsoid.
- Parameters:
data (
numpy.ndarray
,xarray.DataArray
) – n-dimensional dataset, with orthographic latitude longitude coordinateslon (
numpy.ndarray
,xarray.DataArray
) – 1 or 2-dimensional dataset of longitudinal coordinateslat (
numpy.ndarray
,xarray.DataArray
) – 1 or 2-dimensional dataset of latitudinal coordinates
- Returns:
gradients (
list
ofnumpy.ndarray
,list
ofxarray.DataArray
) – longitudinal and latitudinal gradients calculated using th WGS84 geoid.
See also
Related NCL Functions: grad_latlon_cfd, gradsf, gradsg