On Thu, May 1, 2014 at 3:42 PM, Christian K. <ckk...@hoc.net> wrote:
> It looks like you are looking for the derivative rather than the > gradient. Have a look at: > > np.diff(a, n=1, axis=-1) > > n is the order if the derivative. > depending on your use case, you may want to use a polynomial fit for a higher order derivative: np.polyder() -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion