Numpy: 2D trapezium rule - tiagopereira/python_tips GitHub Wiki

At the time of writing scipy and numpy lack a function to perform two-dimensional integration of data in a 2D grid. On the code directory, you can find is a simple python/numpy implementation of the trapezium rule for regularly spaced data:

trapz2d.py