You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @chuaxr , we definitely agree with you! There has been much discussion on this topic - see IEP 1 (and the discussion: #1988). There are plans in the near future to focus more attention on IEP's, so hopefully we will see some movement soon.
I think #3172 is also relevant here: however we currently slice our cube, we get a copy. So assigning values to the slice’s data will not affect the original cube. We have to slice the numpy array (i.e. cube.data) instead, to get get a view.
I would like to be able to change values in iris based on the coordinate, instead of the index.
For example, consider the following cube and say that I wish to set values from -45N to 45N and 160E to 240E to 1:
In this example, what I want can be done by invoking xarray:
But can this be done entirely within iris, without having to resort to specifying the indices manually?
Example of specifying the indices manually:
Cross-posted on Stack Overflow.
The text was updated successfully, but these errors were encountered: