CopMarineSearch

CopMarineSearch#

class eodag.plugins.search.cop_marine.CopMarineSearch(provider, config)[source]#

class that implements search for the Copernicus Marine provider

It calls discover_collections() inherited from StaticStacSearch but for the actual search a special method which fetches the urls of the available products from an S3 storage and filters them has been written.

The configuration parameters are inherited from the parent and grand-parent classes. The auto_discovery parameter in the discover_metadata section has to be set to false and the fetch_url in the discover_queryables queryables section has to be set to null to overwrite the default config from the stac provider configuration because those functionalities are not available.

Parameters:
__init__(provider, config)[source]#
Parameters:

Methods

__init__(provider, config)

build_query_string(collection, query_dict)

Build The query string using the search parameters

build_sort_by(sort_by_arg)

Build the sorting part of the query string or body by transforming the sort_by argument into a provider-specific string or dictionary

clear()

Clear search context

collect_search_urls([prep])

Adds pagination to query parameters, and auth to url

count_hits(count_url[, result_type])

Count the number of results satisfying some criteria

discover_collections(**kwargs)

Fetch collections list from a static STAC Catalog provider using discover_collections conf

discover_collections_per_page(**kwargs)

Fetch collections list from provider using discover_collections conf using paginated kwargs["fetch_url"]

discover_queryables(**kwargs)

Set static available queryables for StaticStacSearch search plugin

do_search([prep])

Perform the actual search request.

get_assets_from_mapping(provider_item)

Create assets based on the assets_mapping in the provider's config and an item returned by the provider

get_collection_cfg_dates([start_default, ...])

Get start and end dates from the collection configuration.

get_collection_cfg_value(key[, default])

Get the value of a configuration option specific to the current collection.

get_collection_def_params(collection[, ...])

Get the provider collection definition parameters and specific settings

get_metadata_mapping([collection])

Get the plugin metadata mapping configuration (collection specific if exists)

get_provider_collections(prep, **kwargs)

Get the _collection(s) / provider collection(s) to which the product belongs

get_sort_by_arg(kwargs)

Extract the sort_by argument from the kwargs or the provider default sort configuration

list_queryables(filters, ...[, collection, ...])

Get queryables

map_collection(collection, **kwargs)

Get the provider collection from eodag collection

normalize_results(results, **kwargs)

Build EOProducts from provider results

query([prep])

Implementation of search for the Copernicus Marine provider :type prep: PreparedSearch, default: PreparedSearch(collection=None, page=1, limit=20, auth=None, auth_plugin=None, count=True, url=None, info_message=None, exception_message=None, next_page_token=None, next_page_token_key=None) :param prep: object containing search parameterds :type kwargs: Any :param kwargs: additional search arguments :rtype: SearchResult :returns: list of products and total number of products

queryables_from_metadata_mapping([...])

Extract queryable parameters from collection metadata mapping.

validate(search_params, auth)

Validate a search request.

Attributes

extract_properties

plugins

auth

next_page_url

next_page_query_obj

total_items_nb

need_count