gstools_cython.variogram.unstructured

gstools_cython.variogram.unstructured(const double[:, :] f, const double[:] bin_edges, const double[:, :] pos, str estimator_type='m', str distance_type='e', num_threads=None)

Omnidirectional variogram estimator.

Parameters:
  • f (double[:, :]) – unstructured random field

  • bin_edges (double[:]) – edges for the variogram bins

  • pos (double[:, :]) – the position (d,n) tuple with d dimensions and n points.

  • estimator_type (str, optional) –

    the estimator function, possible choices:

    • “m”: the standard method of moments of Matheron

    • “c”: an estimator more robust to outliers by Cressie

    Default: “m”

  • distance_type (str, optional) –

    dinstance function type, possible choices:

    • “e”: euclidean distance

    • “h”: haversine distance for lat-lon coordinates

    Default: “e”

  • num_threads (None or int, optional) – number of OpenMP threads, default: None

Returns:

  • variogram (double[:]) – estimated variogram

  • counts (np.int64_t[:]) – counts of samples per bin