imod.mf6.Well.clip_box#
- Well.clip_box(time_min: datetime | datetime64 | str | None = None, time_max: datetime | datetime64 | str | None = None, layer_min: int | None = None, layer_max: int | None = None, x_min: float | None = None, x_max: float | None = None, y_min: float | None = None, y_max: float | None = None, top: DataArray | UgridDataArray | None = None, bottom: DataArray | UgridDataArray | None = None) Package [source]#
Clip a package by a bounding box (time, layer, y, x).
The well package doesn’t use the layer attribute to describe its depth and length. Instead, it uses the screen_top and screen_bottom parameters which corresponds with the z-coordinates of the top and bottom of the well. To go from a layer_min and layer_max to z-values used for clipping the well a top and bottom array have to be provided as well.
Slicing intervals may be half-bounded, by providing None:
To select 500.0 <= x <= 1000.0:
clip_box(x_min=500.0, x_max=1000.0)
.To select x <= 1000.0:
clip_box(x_min=None, x_max=1000.0)
orclip_box(x_max=1000.0)
.To select x >= 500.0:
clip_box(x_min = 500.0, x_max=None.0)
orclip_box(x_min=1000.0)
.
- Parameters:
time_min (optional)
time_max (optional)
layer_min (optional, int)
layer_max (optional, int)
x_min (optional, float)
x_max (optional, float)
y_min (optional, float)
y_max (optional, float)
top (optional, GridDataArray)
bottom (optional, GridDataArray)
- Returns:
sliced
- Return type:
Package