imod.select.points_set_values#
- imod.select.points_set_values(da, values, **points)[source]#
Set values at specified points.
This function will raise a ValueError if the points fall outside of the bounds of the DataArray to avoid undefined behavior. Use the
imod.select.points_in_bounds
function to detect these points.- Parameters:
da (xr.DataArray) –
values ((int, float) or array of (int, float)) –
points (keyword arguments of coordinate=values) – keyword arguments specifying coordinate and values.
- Returns:
da – DataArray with values set at the point locations.
- Return type:
xr.DataArray
Examples
>>> x = [1.0, 2.2, 3.0] >>> y = [4.0, 5.6, 7.0] >>> values = [10.0, 11.0, 12.0] >>> out = imod.select.points_set_values(da, values, x=x, y=y)