Filter

class spectral_indices.Filter[source]

Filter allow to apply selection filters on itemCollection (simplestac) on item metadata.

add_filter(filter_string: str)[source]

Add a filter string to pass to simplestac filter function.

Parameters:

filter_string (str) – Filter condition.

filter_collection(collection: ItemCollection, assets=typing.List[str]) ItemCollection[source]

Apply all filters to an ItemCollection (simplestac). # TODO update docstrings

Parameters:
  • collection (ItemCollection) – ItemCollection to filter.

  • band_adaptater (BandAdaptater) – Band mapper of source where collection comes from.

Returns:

  • Filtered itemCollection.

Return type:

ItemCollection