Skip to content

Commit

Permalink
make sure all bounds variables are treated as auxiliary
Browse files Browse the repository at this point in the history
  • Loading branch information
dchandan committed Feb 26, 2024
1 parent 92a3f3d commit 30de2f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions STACpopulator/extensions/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ def _infer_variable_units_description(self, name, attrs):

def is_coordinate(self, attrs: MutableMapping[str, Any]) -> bool:
"""Return whether variable is a coordinate."""

if (desc := attrs.get("description", None)) is not None:
if "bounds for" in desc:
return True

for key, criteria in self.coordinate_criteria.items():
for criterion, expected in criteria.items():
if attrs.get(criterion, None) in expected:
Expand Down

0 comments on commit 30de2f6

Please sign in to comment.