imod.prepare.create_layered_top#

imod.prepare.create_layered_top(bottom: DataArray | UgridDataArray, top: DataArray | UgridDataArray) DataArray | UgridDataArray[source]#

Create a top array with a layer dimension, from a top array with no layer dimension and a bottom array with a layer dimension. The (output) top of layer n is assigned the bottom of layer n-1.

Parameters:
  • bottom ({DataArray, UgridDataArray}) – Bottoms with layer dimension

  • top ({DataArray, UgridDataArray}) – Top, without layer dimension

Returns:

new_top – Top with layer dimension.

Return type:

{DataArray, UgridDataArray}