resqpy.grid_surface.shadow_from_faces

resqpy.grid_surface.shadow_from_faces(extent_kji, k_faces)

Returns a numpy int8 array indicating whether cells are above, below or between K faces.

Parameters
  • extent_kji (triple int) – the shape of the grid

  • k_faces (bool array) – True where a K face is present; shaped (nk - 1, nj, ni)

Returns

numpy int8 array of shape extent_kji; values are

0 neither above nor below a K face;

1: above any K faces in the column; 2 below any K faces in the column; 3: between K faces (one or more above and one or more below)