yt.frontends.ramses.hilbert module

yt.frontends.ramses.hilbert.get_cpu_list(ds, X)[source]

Return the list of the CPU intersecting with the positions given. Note that it will be 0-indexed.

Parameters:
  • ds (Dataset) – The dataset containing the information

  • X ((N, ndim) float array) – An array containing positions. They should be between 0 and 1.

yt.frontends.ramses.hilbert.hilbert3d(X, bit_length)[source]

Compute the order using Hilbert indexing.

Parameters:
  • X ((N, ndim) float array) – The positions

  • bit_length (integer) – The bit_length for the indexing.