resqpy.olio.box_utilities.box_kji0_from_words_iijjkk1¶
- resqpy.olio.box_utilities.box_kji0_from_words_iijjkk1(words)[source]¶
Returns an integer array of extent [2, 3] converted from a list of words representing logical box.
- input argument (unmodified):
- words: a list of strings with at least 6 elements castable to int
[min_i, max_i, min_j, max_j, min_k, max_k] in Fortran/simulator protocol (indices start at 1)
- returns: 2D numpy int array of shape (2, 3)
[min, max][k, j, i] with cell indices in python protocol (zero base)
Notes
designed to take string format numbers: minI maxI minJ maxJ minK maxK and convert to a pair of integer cell id triplets: min(k, j, i), max(k, j, i) NB: output indices have been decremented by 1 (for python indexing starting at zero)