xcdat icon indicating copy to clipboard operation
xcdat copied to clipboard

Fixes regrid2 mapping output to input ordering

Open jasonb5 opened this issue 1 month ago • 1 comments

Description

Output dimensional order was always ..., Y, X where ... is all other dimensions. This would cause an error when adding bounds as the input dimensional ordering was used in this process.

This PR fixes the issue by correctly transposing the output data to the same ordering as the input data.

  • Closes #625

Checklist

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] My changes generate no new warnings
  • [ ] Any dependent changes have been merged and published in downstream modules

If applicable:

  • [x] I have added tests that prove my fix is effective or that my feature works
  • [x] New and existing unit tests pass with my changes (locally and CI/CD build)
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have noted that this is a breaking change for a major release (fix or feature that would cause existing functionality to not work as expected)

jasonb5 avatar May 09 '24 17:05 jasonb5