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
We have a use case where we'd like to preserve the coordinates. @spencerkclark came up with the following workaround, which entails converting to a dataset, promoting the coord to a variable, performing the mean, and demoting the original coord back from a variable to a coord:
DataArray.mean
applied along a particular dimension causes coordinates that are defined in that dimension to be dropped:We have a use case where we'd like to preserve the coordinates. @spencerkclark came up with the following workaround, which entails converting to a dataset, promoting the coord to a variable, performing the mean, and demoting the original coord back from a variable to a coord:
This works fine, but I just feel like maybe there's an easier way to do this that we're missing. Any ideas? Thanks in advance.
xref spencerahill/aospy#194
The text was updated successfully, but these errors were encountered: