Skip to content

Commit

Permalink
Sort datasets by name
Browse files Browse the repository at this point in the history
  • Loading branch information
sfinkens committed Nov 25, 2019
1 parent b02bbdb commit 12171a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satpy/writers/cf_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def _collect_datasets(self, datasets, epoch=EPOCH, flatten_attrs=False, exclude_
datas = {}
start_times = []
end_times = []
for ds in ds_collection.values():
for ds_name, ds in sorted(ds_collection.items()):
if ds.dtype not in CF_DTYPES:
warnings.warn('Dtype {} not compatible with {}.'.format(str(ds.dtype), CF_VERSION))
try:
Expand Down

0 comments on commit 12171a6

Please sign in to comment.