-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
As counter part of model.get_value_as_xarray()
it would be nice to have model.set_value_as_xarray()
method.
As now for example in docs/examples/Irrigation.ipynb we have to flatten an xarray with
soil_moisture = experiment.get_value_as_xarray('upper_soil_saturation_degree', )
soil_moisture[31:41, 18:28] = 1
experiment.set_value('upper_soil_saturation_degree', soil_moisture.values.flatten())
It would be nicer if you could do
soil_moisture = experiment.get_value_as_xarray('upper_soil_saturation_degree', )
soil_moisture[31:41, 18:28] = 1
experiment.set_value_as_xarray('upper_soil_saturation_degree', soil_moisture)
Peter9192
Metadata
Metadata
Assignees
Labels
No labels