imod.util.empty_2d_transient#
- imod.util.empty_2d_transient(dx: float | ndarray[Any, dtype[floating]], xmin: float, xmax: float, dy: float | ndarray[Any, dtype[floating]], ymin: float, ymax: float, time: Any) DataArray [source]#
Create an empty transient 2D (time, x, y) DataArray.
dx
anddy
may be provided as:scalar: for equidistant spacing
array: for non-equidistant spacing
Note that xarray (and netCDF4) uses midpoint coordinates.
xmin
andxmax
are 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)
time (Any) – One or more of: str, numpy datetime64, pandas Timestamp
- Returns:
empty – Filled with NaN.
- Return type:
xr.DataArray