Utilities for merging metadata from various sources.
Average a series of datetime objects.
This function assumes all datetime objects are naive and in the same time zone (UTC).
datetime_list (iterable) – Datetime objects to average
Returns: Average datetime as a datetime object
- satpy.dataset.metadata.combine_metadata(*metadata_objects, average_times=True)
Combine the metadata of two or more Datasets.
If the values corresponding to any keys are not equal or do not exist in all provided dictionaries then they are not included in the returned dictionary. By default any keys with the word ‘time’ in them and consisting of datetime objects will be averaged. This is to handle cases where data were observed at almost the same time but not exactly. In the interest of time, lazy arrays are compared by object identity rather than by their contents.