pyrocko.spit

N-dimensional space partitioning multi-linear interpolator.

Classes

SPTree([f, ftol, xbounds, xtols, filename, ...])

N-dimensional space partitioning interpolator.

class SPTree(f=None, ftol=None, xbounds=None, xtols=None, filename=None, addargs=())[source]

Bases: object

N-dimensional space partitioning interpolator.

Parameters:
  • f – callable function f(x) where x is a vector of size n

  • ftol – target accuracy |f_interp(x) - f(x)| <= ftol

  • xbounds – bounds of x, shape (n, 2)

  • xtols – target coarsenesses in x, vector of size n

  • addargs – additional arguments to pass to f

check_holes()[source]

Check for NaNs in SPTree