From e7afe22700430f77b93940efef294ba9b8e99fef Mon Sep 17 00:00:00 2001 From: awarde96 Date: Wed, 15 Jan 2025 08:20:48 +0000 Subject: [PATCH] Fix minor bug when converting to xarray, where steps were unsorted --- covjsonkit/decoder/BoundingBox.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/covjsonkit/decoder/BoundingBox.py b/covjsonkit/decoder/BoundingBox.py index 6dafcb7..9e0e3e6 100644 --- a/covjsonkit/decoder/BoundingBox.py +++ b/covjsonkit/decoder/BoundingBox.py @@ -84,9 +84,9 @@ def to_xarray(self): coverage["mars:metadata"]["step"] ] = coverage["ranges"][parameter]["values"] - datetimes = list(set(datetimes)) - numbers = list(set(numbers)) - steps = list(set(steps)) + datetimes = sorted(list(set(datetimes))) + numbers = sorted(list(set(numbers))) + steps = sorted(list(set(steps))) new_values = {} for parameter in values.keys():