eolearn.core.eodata_merge
A module implementing EOPatch merging utility
- eolearn.core.eodata_merge.merge_eopatches(*eopatches, features=Ellipsis, time_dependent_op=None, timeless_op=None)[source]
Merge features of given EOPatches into a new EOPatch.
- Parameters:
eopatches (EOPatch) – Any number of EOPatches to be merged together.
features (eolearn.core.types.FeaturesSpecification) – A collection of features to be merged together. By default, all features will be merged.
time_dependent_op (Literal[None, 'concatenate', 'min', 'max', 'mean', 'median'] | ~typing.Callable | None) –
An operation for joining data for time-dependent raster features. Before joining time slices of all arrays will be sorted. Supported options are:
None: If time slices with matching timestamps have the same values, take one. Raise an error otherwise.
’concatenate’: Keep all time slices, even the ones with matching timestamps
’min’: Join time slices with matching timestamps by taking minimum values. Ignore NaN values.
’max’: Join time slices with matching timestamps by taking maximum values. Ignore NaN values.
’mean’: Join time slices with matching timestamps by taking mean values. Ignore NaN values.
’median’: Join time slices with matching timestamps by taking median values. Ignore NaN values.
timeless_op (Literal[None, 'concatenate', 'min', 'max', 'mean', 'median'] | ~typing.Callable | None) –
An operation for joining data for timeless raster features. Supported options are:
None: If arrays are the same, take one. Raise an error otherwise.
’concatenate’: Join arrays over the last (i.e. bands) dimension
’min’: Join arrays by taking minimum values. Ignore NaN values.
’max’: Join arrays by taking maximum values. Ignore NaN values.
’mean’: Join arrays by taking mean values. Ignore NaN values.
’median’: Join arrays by taking median values. Ignore NaN values.
- Returns:
A merged EOPatch
- Return type: