Skip to content

Commit

Permalink
Also handle cartesian_axis values
Browse files Browse the repository at this point in the history
  • Loading branch information
katamartin committed Apr 29, 2024
1 parent 9243fe2 commit b3f4810
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/utils/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,8 @@ const inferCfAxes = (metadata, pyramid) => {
if (dimAttrs) {
if (dimAttrs.axis) {
accum[dimAttrs.axis] = dim // collect axis information
} else if (dimAttrs.cartesian_axis) {
accum[dimAttrs.cartesian_axis] = dim
}
// ensure time is captured if it has a 'calendar' attribute
if (dimAttrs.calendar && !accum.T) {
Expand Down

0 comments on commit b3f4810

Please sign in to comment.