Required
layer| Type: | lm.layered_model.Layer |
| Description: | The layer to flood. |
1. The parameter's values as evaluated at the vertical coordinate, or 2. The parameter's original values, unchanged.
[1.0, 1.5, 2.0] which correspond
to vertical locations of [0.0, 0.5, 1.0] respectively, flooding "upwards"
from a vertical coordinate of 0.5 would result in the model [1.0, 1.5,
1.5], while flooding "downwards" would result in the model [1.5, 1.5, 2.0].flood_from
coming from the input model, with all parameters on the other side set to
the value of the parameter evaluated along the flooding plane. If no
vertical coordinate is present, the parameter will be returned as it was
passed in.sympy.Piecewise(...)
representation will be returned. If no vertical coordinate is present, the
analytic parameter will be returned as it was passed in.def flood(
layer: lm.layered_model.Layer,
flood_from: float | lm.interface.Depth | lm.interface.Height,
flood_direction: typing.Literal["up", "down"],
new_layer_bounds: lm.layered_model.LayerBounds | None = None,
) -> lm.layered_model.Layer: ...| Type: | lm.layered_model.Layer |
| Description: | The layer to flood. |
| Type: | float | lm.interface.Depth | lm.interface.Height |
| Description: | The vertical coordinate from which to flood the layer's parameters. |
| Type: | typing.Literal['up', 'down'] |
| Description: | The direction with which to flood, can be "up" or "down". |
| Type: | lm.layered_model.LayerBounds | None |
| Default value: | None |
| Description: | The bounds of the layer post-flooding. Can be different than the layer's current bounds. If None, will default to the layer's current bounds. |
lm.layered_model.Layernew_layer_bounds.