first_derivative#
- rojak.core.derivatives.first_derivative(array, grid_spacing_in_meters, axis)[source]#
First derivative of
arrayalongaxis, with respect to physical distanceThe (possibly irregular) grid spacing along
axisis used to build the coordinate values that the central difference derivative (numpy.gradient()/dask.array.gradient()) is taken with respect to, so the result is a derivative with respect to true distance (in meters) rather than grid index.- Parameters:
- Returns:
Derivative of
arrayalongaxis, with the same shape asarray- Return type: