imod.util.empty_3d_transient#
- imod.util.empty_3d_transient(dx: float | ndarray[tuple[Any, ...], dtype[floating]], xmin: float, xmax: float, dy: float | ndarray[tuple[Any, ...], dtype[floating]], ymin: float, ymax: float, layer: int | Sequence[int] | ndarray[tuple[Any, ...], dtype[int64]], time: Any) DataArray[source]#
- Create an empty transient 3D (time, layer, x, y) DataArray. - dxand- dymay be provided as:- scalar: for equidistant spacing 
- array: for non-equidistant spacing 
 - Note that xarray (and netCDF4) uses midpoint coordinates. - xminand- xmaxare used to generate the appropriate midpoints.- Parameters:
- dx (float, 1d array of floats) – cell size along x 
- xmin (float) 
- xmax (float) 
- dy (float, 1d array of floats) – cell size along y 
- ymin (float) 
- ymax (float) 
- layer (int, sequence of integers, 1d array of integers) 
- time (Any) – One or more of: str, numpy datetime64, pandas Timestamp 
 
- Returns:
- empty – Filled with NaN. 
- Return type:
- xr.DataArray