Open
Description
What happened?
Related to
- [Bug]: Coordinate ValueError using .group_average #748
- Fix incorrect dimension used for temporal weights generation #749 (comment)
The spatial averaging API assumes a fixed order and number of dimensions while handling bounds. For example, for lat_bnds
, it assumes (lat, bnds)
.
This assumption can possibly presents issues if the order of dims are different or there are more dimensions. We assume fixed order of dimensions using positional indexing in spatial.py
here:
Line 424 in c198620
Line 496 in c198620
Lines 587 to 601 in c198620
What did you expect to happen? Are there are possible answers you came across?
Dynamically handle bounds and their dimensions successfully
Minimal Complete Verifiable Example (MVCE)
Relevant log output
Anything else we need to know?
No response
Environment
Latest main
and xCDAT <=0.8.0
Metadata
Metadata
Assignees
Type
Projects
Status
Todo