how to modify values using integer-based indexing #7043
-
Hi all, I am enjoying using integer-based (isel) indexing to select DataArray coordinates as it's more explicit than numpy positional indexing. However, I'm confused about how to modify individual values of a DataArray using this type of indexing. For example, suppose I have a DataArray da with coordinate dimensions lat and lon. However, according to the documentation, this is not recommended:
I'm having difficulty finding the correct approach in the documentation. Is there a recomended method? Thanks much, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This can be done using |
Beta Was this translation helpful? Give feedback.
This can be done using
da[dict(lat=0, lon=1)] = 10
.