griddata runtime error — Python / SciPy (Interpolation)

前端 未结 2 1309
广开言路
广开言路 2021-01-14 14:40

I use scipy\'s griddate-function for interpolation.

What does the following error message means which appears when python is executing the griddata-function?

2条回答
  •  一整个雨季
    2021-01-14 14:53

    This typically means that the point set you passed in cannot be triangulated. Some common cases when this might occur:

    • You have 2D data, but all the points lie along a line. In this case there is no triangulation of the data to non-degenerate triangles.
    • You have 3D data, but all the points lie on a plane, so no decomposition to non-degenerate tetrahedra. And so on to higher dimensions.

    In these cases, interpolation does not make sense either, so this failure is not an indication of a bug, but incorrect usage of griddata.

    Typically, Qhull prints additional information on what went wrong to stderr, so check the program output to see what it says.

提交回复
热议问题