imod.mf6.open_dvs#
- imod.mf6.open_dvs(dvs_path: str | Path, grb_path: str | Path, indices: ndarray, simulation_start_time: datetime64 | None = None, time_unit: str | None = 'd') DataArray | UgridDataArray [source]#
Open modflow6 dependent variable output for complex packages (like the watercontent file for the UZF-package).
The data is lazily read per timestep and automatically converted into (dense) xr.DataArrays or xu.UgridDataArrays, for DIS and DISV respectively. The conversion is done via the information stored in the Binary Grid file (GRB).
- Parameters:
dsv_path (Union[str, pathlib.Path])
grb_path (Union[str, pathlib.Path])
indices (np.ndarray) – The indices to map dvs variable to model nodes
simulation_start_time (Optional datetime) – The time and date correpsonding to the beginning of the simulation. Use this to convert the time coordinates of the output array to calendar time/dates. time_unit must also be present if this argument is present.
time_unit (Optional str) – The time unit MF6 is working in, in string representation. Only used if simulation_start_time was provided. Admissible values are: ns -> nanosecond ms -> microsecond s -> second m -> minute h -> hour d -> day w -> week Units “month” or “year” are not supported, as they do not represent unambiguous timedelta values durations.
- Returns:
dvs
- Return type:
Union[xr.DataArray, xu.UgridDataArray]