From fc97093d5f96b189c55e18e6ee5ee6add9ed72ee Mon Sep 17 00:00:00 2001 From: Jungkyo Jung Date: Thu, 11 Jan 2024 15:39:33 -0800 Subject: [PATCH] sort metadata --- src/dswx_sar/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dswx_sar/metadata.py b/src/dswx_sar/metadata.py index e420606..91843a3 100644 --- a/src/dswx_sar/metadata.py +++ b/src/dswx_sar/metadata.py @@ -81,7 +81,7 @@ def _copy_meta_data_from_rtc(metapath_list, dswx_metadata_dict): dswx_metadata_dict['RTC_QA_RFI_NUMBER_OF_BURSTS'] = np.sum(bool_list) else: - dswx_contents = set(values) + dswx_contents = sorted(set(values)) dswx_metadata_dict[dswx_field] = \ values[0] if len(dswx_contents) == 1 else ', '.join(dswx_contents)