[Bug]: get_bounds()
can't get bounds for non-CF axes without var_key
argument
#707
Labels
type: bug
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Milestone
What happened?
Notice in the
get_bounds()
conditional below, we retrieve bounds for the Dataset object using_get_bounds_keys()
(which does not work with non-CF axes). On the other hand, if we passvar_key
, we get the bounds using the "bounds" attribute of non-CF axes (which works fine).xcdat/xcdat/bounds.py
Lines 233 to 250 in e3dda64
xcdat/xcdat/bounds.py
Lines 477 to 508 in e3dda64
What did you expect to happen? Are there are possible answers you came across?
We should be able to get bounds for non-CF compliant axes that xCDAT can map to via dimension name (e.g., "lev", "lat", "lon"). We need to update
_get_bounds_keys()
to consider the "bounds" attribute.Minimal Complete Verifiable Example (MVCE)
Relevant log output
No response
Anything else we need to know?
Found this bug through e3sm_diags GH issue 863
Environment
Latest xCDAT and
main
The text was updated successfully, but these errors were encountered: