Skip to content

Commit

Permalink
Merge pull request #58 from oberonia78/sort_metadata
Browse files Browse the repository at this point in the history
sort metadata
  • Loading branch information
oberonia78 authored Jan 11, 2024
2 parents d9a43b3 + fc97093 commit 5f4c320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dswx_sar/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5f4c320

Please sign in to comment.